-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalias
More file actions
executable file
·86 lines (68 loc) · 2.63 KB
/
alias
File metadata and controls
executable file
·86 lines (68 loc) · 2.63 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# some more ls aliases
alias ll='ls -lha'
alias la='ls -A'
alias l='ls -CF'
alias install='sudo apt-get install'
alias search='sudo apt-cache search'
alias stemp='find ./ -iname "*~"'
alias rtemp='find ./ -iname "*~" -exec rm -f {} \;'
alias rvt='find ./ -iname "*.sw*" -exec rm -f {} \;'
alias ..='cd ..'
alias ...='cd ..; ll'
alias cd..='cd ..'
alias home='cd ~'
alias peg='ps -ef | grep -i'
alias llg='launchctl list | grep'
#GEM
alias gl='gem list'
alias glg='gem list | grep'
alias gi='gem install $1 --no-ri --no-rdoc'
alias sgi='sudo gem install $1 --no-ri --no-rdoc'
alias gu='gem update --no-ri --no-rdoc'
alias sgu='sudo gem update --no-ri --no-rdoc'
alias bi='bundle install'
alias bu='bundle update'
alias be='bundle exec'
#RAILS
alias resetdb='rake db:drop:all db:create:all db:migrate db:seed'
alias rst='rails s thin'
alias suse='sudo service'
alias t='tree'
alias r='rails'
#GIT
alias gitrb="fact && git fetch; git rebase origin/master"
alias g='git $1 | cowthink -n -f tux.cow'
alias pull='git fetch; git pull origin master'
alias mu='git pull; git submodule update --init'
alias gitrb='git fetch; git rebase origin/`git branch | grep \* | sed "s/^\* //g"`'
alias gp='git push'
#MONGO
alias mongo-start="mongod --fork --dbpath \$EPREFIX/var/lib/mongodb --logpath \$EPREFIX/var/log/mongodb.log"
alias mongo-stop="killall -SIGTERM mongod 2>/dev/null"
alias mongo-status="killall -0 mongod 2>/dev/null; if [ \$? -eq 0 ]; then echo 'started'; else echo 'stopped'; fi"
#VIM ON MAC
[[ -s "/Users/dynaum/Applications/MacVim.app/Contents/MacOS/Vim" ]] && alias vim='/Users/dynaum/Applications/MacVim.app/Contents/MacOS/Vim'
#REDIS
alias redisstart='sudo launchctl start io.redis.redis-server'
alias redisstop='sudo launchctl stop io.redis.redis-server'
alias redis-cleanup='redis-cli keys "*" | xargs redis-cli del'
alias loser='say -v Cello "loser loser loser loser loser loser loser loser loser loser loser loser loser"'
alias espresso='~/projects/github/Espresso/bin/espresso.js'
#MY IP
alias myip='curl -s http://checkrealip.com/ | grep "Current IP Address"'
alias dnsflush='sudo killall -HUP mDNSResponder'
alias fact="elinks -dump randomfunfacts.com | sed -n '/^| /p' | tr -d \|"
alias psg='ps -ef | grep -i $1 | grep -v grep'
#Google App Engine
alias goapp=~/google-cloud-sdk/platform/google_appengine/goapp
#Docker
alias dc=docker-compose
alias dr='dc run --rm app'
#BIN
alias br='bundle exec rspec'
#Terraform
alias at="assume_role.sh terraform"
alias tf="terraform"
alias lsplog="tail -f /tmp/lsp_*.log"
alias mt="mix test"
alias kf='kubectl port-forward -n shore $(kubectl get pod -n shore -l app=${PWD##*/} -o jsonpath="{.items[0].metadata.name}") 4000:4000'