Folder structure:
bash:
tsc & node src/test.js & chsh -s /bin/bash
05 Tuesday Sep 2023
Posted Uncategorized
inFolder structure:
bash:
tsc & node src/test.js & chsh -s /bin/bash
13 Monday Mar 2023
Posted Uncategorized
in
%Preamble
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%draw graphs
\usepackage {tikz}
\usetikzlibrary {positioning}
\definecolor {processblue}{cmyk}{0.96,0,0,0}
% within document environment
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin {center}
\begin {tikzpicture}[latex-latex, auto ,node distance =4 cm and 5cm ,on grid ,
semithick ,
state/.style ={ circle, draw, minimum width =1 cm}]
\node[state] (A) [] {$1$};
\node[state] (B) [right =of A] {$2$};
\node[state] (C) [right =of B] {$3$};
\node[state] (D) [below =of C] {$4$};
\node[state] (E) [above =of C] {$5$};
\path (A) edge [] node[below =0.15 cm] {} (B);
\path (B) edge [] node[below =0.15 cm] {} (C);
\path (C) edge [] node[below =0.15 cm] {} (D);
\path (C) edge [] node[below =0.15 cm] {} (E);
\end{tikzpicture}
\end{center}
You can adjust the arrow heads of the edges by replacing “latex-latex” by:
latex-latex : <->
-latex : ->
latex- : ->
<-> : <-> etc…
latex-latex will generate filled balck arrows, whereas <-> produces light non filled arrows.
Not specifying a value for the argument will remove the arrow heads.
12 Monday Sep 2022
Posted Uncategorized
inSquare brackets are very hard to write with the default key mapping option + 5,6. I changed it to shift + option + 8,9 using the tool karabiner elements. Just download and install karabiner elements, and make sure that all permissions are given. I had trouble doing so, and had to close and reopen the program several times, always prompting me other permissions that I then guaranteed. Then go to
cd ~/.config/karabiner/assets/complex_modifications/
And add a file containing
{
"title": "[] option + 5,6 to optione + shift + 8,9",
"rules": [
{
"description": "eckige klammern mit option left shift und 8 und 9 machen. Sonst machende diese Tasten ˜· (mittlerer Punkt, brauch ich nicht)",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"left_option",
"left_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "5",
"modifiers": ["left_option"]
}
]
},
{
"type": "basic",
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"left_option",
"left_shift"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "6",
"modifiers": ["left_option"]
}
]
}
]
}
]
}
Finally activate the newly created rule.
19 Friday Aug 2022
Posted Uncategorized
ingit log --author="name surname" --since='Aug 1 2022' --until='Aug 19 2022' --pretty=format:"%ad%x09%s"
09 Tuesday Aug 2022
Posted Uncategorized
inssh-keygen -t rsa -b 4096 -C "private-email-adress@gmail.com" -f id_rsa-private
ssh-keygen -t rsa -b 4096 -C "email_of_company@company.com" -f id_rsa-company-name
https://pawelgrzybek.com/multiple-ssh-keys-for-multiple-bitbucket-github-accounts/
27 Wednesday Jul 2022
Posted Uncategorized
in24 Friday Jun 2022
Posted Uncategorized
inhttps://www.baeldung.com/git-assume-unchanged-skip-worktree
So:
git update-index --skip-worktree skipworktree.txt
git update-index --no-skip-worktree skipworktree.txt
22 Wednesday Jun 2022
Posted Uncategorized
inWindows:
chrome.exe –disable-site-isolation-trials –disable-web-security –user-data-dir=”%USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default”
07 Tuesday Jun 2022
Posted Uncategorized
inlet data = [1,2,3]
$.ajax({
type: "POST",
url: "nameOfRequestInNetwork.html",
dataType: "json",
data: JSON.stringify({ 'results': data }),
success: function(msg){
$('.answer').html(msg);
}
});
02 Monday May 2022
Posted Uncategorized
inUse Axios for creating a get, post, etc. request in the backend.
Authentication: certificate, API authentication key
Certificates:
https://www.antary.de/2017/03/11/zertifikate-ein-ueberblick-der-verschiedenen-formate/#:~:text=crt%20sind%20Dateien%20im%20PEM,f%C3%BCr%20jedes%20Zertifikat%20verlangt%20werden.
Solve Problem with custom certificats
https://git.coolaj86.com/coolaj86/ssl-root-cas.js
Public key cryptography:
Signature Part: