Skip to content

Instantly share code, notes, and snippets.

View davebulaval's full-sized avatar

David Beauchemin davebulaval

View GitHub Profile
@davebulaval
davebulaval / terminal-alias
Last active March 5, 2022 14:37
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
@davebulaval
davebulaval / tools.md
Last active August 8, 2020 14:58
A exhaustive various tools list I use (or had used) during my study

Web Extraction

  • Scrapy : a Python framework for extracting the data of website.
  • ScrapingHub : a hosting scrapper service to extract data

Database

  • MLab : a mongoDB hosting service

Python

  • PouTyne : a Keras-like framwework for deep learning.
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}
@davebulaval
davebulaval / cheat_sheet.md
Last active March 26, 2022 16:10
Cheat Sheet

Personal Cheat sheet

SSH and SCP

Config SSH Credential

To config a ssh credential edit the config file ~/.ssh/config as show bellow

Host {credential_name}
    Hostname {ip_address}
    User {username}