Skip to content

Instantly share code, notes, and snippets.

@SeedyROM
Created August 10, 2019 03:05
Show Gist options
  • Save SeedyROM/26231cfa8d61db6a05ba5ae78e0711c2 to your computer and use it in GitHub Desktop.
Save SeedyROM/26231cfa8d61db6a05ba5ae78e0711c2 to your computer and use it in GitHub Desktop.
Shortcuts for my Linux Box
# General Shortcuts
alias wifi="wicd-curses"
alias connections="sudo iftop -i wlp4s0"
alias restart-network="sudo service network-manager restart"
alias work="cd ~/Workspace"
alias dc="docker-compose"
# Mistake Shortcuts
alias gti="git"
function mk() {
make "$@"
}
function mkcd() {
mkdir -p $1; cd $1
}
function cls() {
clear; ls
}
# Python/Django Shortcuts
alias dm="./manage.py"
# Update VS Code.
function update-vscode() {
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb
}
# Copy Paste
alias _copy="xclip -selection c"
alias _paste="xclip -selection c -o"
# Silent Runner
function silent() {
"$@" > /dev/null 2>&1 &
}
function pip-lock() {
pip freeze > requirements.txt
}
# docker-compose bash
function dcsh() {
docker-compose run --rm $1 bash
}
alias gti="git"
alias install-sentry="curl -fsSLo- https://raw.githubusercontent.com/samueleaton/sentry/master/install.cr | crystal eval"
alias cool-matrix="cmatrix -a -u 2 -b -C blue"
alias git-hist="git log --oneline"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment