Directory
Git
SSH
ls -al ~/.ssh
$ \Rightarrow $ check if a key already existssh-keygen -t rsa -b 4096 -C "sol.rosca@he-arc.ch"
$ \Rightarrow $ make new keyeval "$(ssh-agent -s)"
$ \Rightarrow $ check if ssh agent is workingssh-add ~/.ssh/id_rsa
$ \Rightarrow $ put key in … foldersudo apt-get install xclip
$ \Rightarrow $ nice toolxclip -sel clip < ~/.ssh/id_rsa.pub
$ \Rightarrow $ using the nice tool
git
apt-get install git
Git comes with a tool called git config that lets you get and set configuration variables that control all aspects of how Git looks and operates. These variables can be stored in three different places:
.1 /etc/gitconfig file
$ \Rightarrow $ Contains values for every user on the system and all their repositories. If you pass the option --system
to git config
, it reads and writes from this file specifically.
.2 ~/.gitconfig
or ~/.config/git/config file
$ \Rightarrow $ Specific to your user. You can make Git read and write to this file specifically by passing the –global option.
.3 config
$ \Rightarrow $ file in the Git directory (that is, .git/config
) of whatever repository you’re currently using: Specific to that single repository.
$ git config --global user.name "John Doe"
-
$ git config --global user.email johndoe@example.com
-
$ git config --global color.ui auto
$ git clone https://github.com/RoscaS/RoscaS.github.io
Jekyll
links
jekyll website jekyll doc Hands on tutorial
Installation
Ruby
$apt-get install ruby-full
gem install jekyll
usefull cmd
jekyll --version
gem update jekyll
jekyll serve
$ \Rightarrow $ http://localhost:4000/gem install jekyll bundler
$ \Rightarrow $ usefull the first timejekyll new myblog
$ \Rightarrow $ Create a new blog in myblog
Mermaid
- Download js code of mermaid: mermaid. ATM, the file is hosted here but it might change after update. We want the file named
mermaid.min.js
. - Put this file into a folder named
js
in the root of the website. - Open
/_includes/head.html
and add this line:<script src="/js/mermaid.min.js"></script>
- Now we can make nice graphs like this one:
<div class="mermaid">
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
</div>
We just need to put the graph code inside <div class="mermaid">...</div>
tags.