-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash-aliases
26 lines (25 loc) · 839 Bytes
/
bash-aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# alias
alias ts="./vendor/bin/phpunit"
alias dl="axel -a"
alias gclean="git stash --include-untracked && git stash drop"
alias tinker="php artisan tinker"
alias svpn="sudo openfortivpn -c ~/snappcloud --persistent 20"
alias dkps="docker ps"
alias dkst="docker stats"
alias dkpsa="docker ps -a"
alias dkimgs="docker images"
alias dkcpup="docker-compose up -d"
alias dkcpdown="docker-compose down"
alias dkcpstart="docker-compose start"
alias dkcpstop="docker-compose stop"
alias setgopath="export GOPATH=$PWD"
# functions
pass_gen () { openssl rand -base64 ${1:-8} }
dcleanup(){
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null
}
firebaseUp() {
export GOOGLE_APPLICATION_CREDENTIALS="${1}"
firebase emulators:start
}