Last active
February 10, 2026 21:27
-
-
Save skarm61/7735411 to your computer and use it in GitHub Desktop.
bash aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias aliases='vim ~/.bash_aliases' | |
| # Rails db's: | |
| # alias db='rake db:migrate && rake db:migrate RAILS_ENV=test' | |
| # alias db_dance='rake db:dance && rake db:migrate RAILS_ENV=test' | |
| # alias reset_db='rake db:drop && rake db:create && rake db:migrate && rake db:seed' | |
| # 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 $(current_branch)' | |
| alias gpm='git pull origin master' | |
| alias gpd='git pull origin dev' | |
| alias gpdev='git pull origin development' | |
| alias gca='git commit --amend' | |
| alias branch='git branch' | |
| alias gc='git clean -f' | |
| alias gs='git st' | |
| alias ga='git add . && git add -u' | |
| alias gr='git reset --hard' | |
| alias gpl='git please origin $(current_branch)' | |
| alias rebase='git rebase master' | |
| # Odessa: | |
| alias server='ssh server@78.26.146.252' | |
| alias run_odessa_server='(cd ~/Projects/Odessa/odessa_list_of_clients; cap production_bac unicorn:start)' | |
| alias notes='vim ~/.notes' | |
| alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)/(\1)/'" | |
| # FWFM: | |
| # alias dev='ssh rails@46.101.206.250' | |
| # alias staging_fifa='ssh rails@46.101.115.229' | |
| # alias dev1_fifa='ssh rails@138.68.88.153' | |
| # alias prod_node_1='ssh rails@46.101.140.225' | |
| # alias prod_node_2='ssh rails@46.101.116.186' | |
| # alias prod_db='ssh root@46.101.162.19' | |
| alias ls='ls -GFhl' | |
| # alias my_server='ssh root@88.99.170.71' | |
| # Fuse: | |
| # alias fuse_prod='ssh ubuntu@10.0.4.96' | |
| # alias fuse_stag='ssh ubuntu@10.0.12.168' | |
| # Projects: | |
| alias bangalore='cd ~/projects/darly/bangalore' | |
| alias releasemanager='cd ~/projects/darly/mr_gmbh/releasemanager' | |
| alias personal='cd ~/projects/personal' | |
| alias docker_kill_all='docker kill $(docker ps -q)' | |
| alias doc='docker-compose -f docker-compose-dev.yaml' | |
| alias build_pamofor='( | |
| cd ../pamofor-web-front && | |
| git pull origin dev && | |
| npm install && | |
| npx ng build --prod && | |
| cd ../web_backend && | |
| find ./public -mindepth 1 -maxdepth 3 ! -name "robots.txt" -delete && | |
| mv -f ../pamofor-web-front/dist/pamofor/* public && | |
| git add ./public && | |
| git commit -m "Update front: prod" | |
| )' | |
| alias build_pamofor_heroku='( | |
| cd ../pamofor-web-front && | |
| git pull origin dev && | |
| npm install && | |
| npx ng build --configuration heroku && | |
| cd ../web_backend && | |
| find ./public -mindepth 1 -maxdepth 3 ! -name "robots.txt" -delete && | |
| mv -f ../pamofor-web-front/dist/pamofor/* public && | |
| git add ./public && | |
| git commit -m "Update front: heroku" | |
| )' | |
| alias deploy_pamofor_heroku='build_pamofor_heroku && git push origin master && git push heroku master && heroku run rails db:migrate' | |
| alias deploy_pamofor_prod='build_pamofor && git push origin master' | |
| alias clear_docker_full='( | |
| docker rm $(docker ps -q -f "status=exited") || | |
| docker rmi $(docker images -q -f "dangling=true") || | |
| docker system prune -a -f || | |
| docker image prune -f || | |
| docker container prune -f || | |
| docker rmi $(docker images -a -q) || | |
| docker stop $(docker ps -a -q) || | |
| docker rm $(docker ps -a -q) || | |
| docker container prune -f || | |
| docker volume prune -f | |
| )' | |
| alias clear_docker='( | |
| docker rm $(docker ps -q -f "status=exited") || | |
| docker system prune -a -f || | |
| docker container prune -f || | |
| docker stop $(docker ps -a -q) || | |
| docker rm $(docker ps -a -q) || | |
| docker container prune -f || | |
| docker volume prune -f | |
| )' | |
| alias clear_docker_lite='( | |
| docker stop $(docker ps -a -q) || | |
| docker rm $(docker ps -a -q) || | |
| docker rm $(docker ps -q -f "status=exited") || | |
| docker system prune -a -f || | |
| docker container prune -f || | |
| docker volume prune -f | |
| )' | |
| alias rm_mr_database=' | |
| doc down || | |
| docker volume rm releasemanager_dbdata | |
| ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment