Skip to content

Instantly share code, notes, and snippets.

@davebulaval
Last active March 5, 2022 14:37
Show Gist options
  • Save davebulaval/7e08d7997365c5bda57e9f3b04e62053 to your computer and use it in GitHub Desktop.
Save davebulaval/7e08d7997365c5bda57e9f3b04e62053 to your computer and use it in GitHub Desktop.
Personal functions I used in my terminal
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
}
alias webcam='sudo modprobe v4l2loopback video_nr=10 card_label="OBS Video Source" exclusive_caps=1'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment