skarm
12/1/2013 - 3:36 PM

bash aliases

bash aliases

alias sphere_vpn='sudo openvpn --config ~/.config/openVPN/vpn0.sphere.ua.config.ovpn --user asapozhnikov'

alias aliases='vim ~/.bash_aliases'

alias db='rake db:migrate && rake db:migrate RAILS_ENV=test && annotate'
alias db_dance='rake db:dance && rake db:migrate RAILS_ENV=test && annotate'
alias reset_test_db='rake db:drop RAILS_ENV=test && rake db:create RAILS_ENV=test && rake db:migrate RAILS_ENV=test'

alias be='bundle exec'
alias c='clear'
alias bi='bundle install'

alias gp='git pull origin development'
alias gpm='git pull origin master'
alias gca='git commit --amend'
alias branch='git branch'
alias gc='git clean -f'
alias gs='git status'
alias ga='git add . && git add -u'
alias gr='git reset --hard'
alias rebase='git rebase master'

alias ls='ls --color=auto -l'
alias update='sudo apt-get update && sudo apt-get upgrade -y'
alias server='ssh server@78.26.146.252'

alias restart_runner_8='ssh notroot@10.150.1.19 sudo /etc/init.d/gitlab-ci-runner stop && ssh notroot@10.150.1.19 sudo /etc/init.d/gitlab-ci-runner start'
alias restart_runner_7='ssh notroot@10.150.1.18 sudo /etc/init.d/gitlab-ci-runner stop && ssh notroot@10.150.1.18 sudo /etc/init.d/gitlab-ci-runner start'
alias dev_db_buc='ssh notroot@10.150.1.23 mysqldump -uroot -p1 bins_production > buc_db_dev_$(date +"%d-%m-%Y").sql'
alias dev_server='ssh notroot@10.150.1.23'

alias fixDns='bash /home/asapozhnikov/Scripts/fix_dns'

alias notes='vim ~/.notes'
alias autoran='gnome-session-properties'

alias work_ssh='ssh 10.1.10.91'