Personal Cheat sheet
To config a ssh credential edit the config file ~/.ssh/config
as show bellow
Host {credential_name}
Hostname {ip_address}
User {username}
https://hackernoon.com/git-going-with-aliases-a9706e23fa9c | |
[alias] | |
publish = git push --set-upstream origin $(git rev-parse — abbrev-ref HEAD) | |
sync= !git fetch --all --prune && git rebase -p --autostash $1 | |
wipe = !git add -A && git commit -qm 'WIPE SAVEPOINT' && git reset HEAD~1 --hard | |
uncommit = !git reset --soft HEAD^ | |
unstage = !git reset | |
upstream = rev-parse --abbrev-ref --symbolic-full-name @{upstream} |
alias purge-latex='setopt +o nomatch && rm -f *.aux *.bbl *.blg *.log *.lof *.lot *.synctex.gz *.toc *.nav *.out *.pyg *.snm *.loa' | |
alias package-update='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove' | |
alias zsh_non_match='setopt +o nomatch' | |
alias connect='sudo openconnect vpncampus.ulaval.ca -u [email protected] --passwd-on-stdin < ~/.vpn/credentials' | |
codecorr() { | |
black ./ && pylint $1 tests | |
} | |
awk() { | |
mawk $1 |