Skip to content

Instantly share code, notes, and snippets.

@amin3mej
Created July 9, 2019 19:01
Show Gist options
  • Save amin3mej/e6542ae8ff2b6440d8a31f20f0387a7e to your computer and use it in GitHub Desktop.
Save amin3mej/e6542ae8ff2b6440d8a31f20f0387a7e to your computer and use it in GitHub Desktop.
My zsh config file
cdp () {
cd ~/Projects && cd $1
}
dl (){
aria2c -c -x16 -s16 $1
}
alias c='sudo openconnect --cafile ~/cert/ca.crt --certificate ~/cert/dinner-loop.p12 --key-password 'YOUR PASSWORD' --pfs 11.22.33.44 -b --pid-file=$HOME/.openconnect.pid'
function dc() {
sudo kill -2 `cat "$HOME/.openconnect.pid"` && rm -f "$HOME/.openconnect.pid"
sleep 3
sudo ifconfig en7 down
networksetup -setairportpower en0 off
sudo ifconfig en7 up
networksetup -setairportpower en0 on
}
alias ud='docker kill $(docker ps -q) && docker-compose -f docker-compose.dev.yml up -d'
alias ed='docker-compose -f docker-compose.dev.yml exec app bash -l'
alias sd='docker-compose -f docker-compose.dev.yml stop'
alias rl='react-native log-android'
alias rr='react-native run-android'
alias ri='react-native run-ios'
alias adbrev='adb reverse tcp:8081 tcp:8081'
alias code.="code ."
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:/Users/amin/development/flutter/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment