Skip to content

Instantly share code, notes, and snippets.

@assafmo
Last active November 3, 2017 10:40
Show Gist options
  • Save assafmo/355ca773093d301f603ebdcea2eed078 to your computer and use it in GitHub Desktop.
Save assafmo/355ca773093d301f603ebdcea2eed078 to your computer and use it in GitHub Desktop.
.zshrc additions
alias update="sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y"
alias h="history"
alias hs="history | grep -i"
alias gs='git status'
alias ga='git add -A'
alias gc='git commit -m'
alias gp='git push'
alias subs="addic7ed -l en --no-hi"
alias subsdir="find . -name '*mkv' | parallel addic7ed -l en --no-hi"
function rarbg(){
query=$(echo "$@" | sed 's/ /%20/g')
google-chrome "http://rarbg.to/torrents.php?search=$query+720p+x264&order=seeders&by=DESC" > /dev/null 2> /dev/null & disown
}
function botSend(){
BOT_ID=abc
CHAT_ID=123
curl "https://api.telegram.org/bot$BOT_API_TOKEN/sendMessage" -d "chat_id=$CHAT_ID" -d "text=$1" --compressed -s | jq .
}
function calc(){
echo "$*" | bc -l
}
alias rsync="rsync -Phr"
alias i="sudo apt install -y"
alias aria2c="aria2c -c -s 8 -x 8 -k 1M --stream-piece-selector=inorder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment