| Line 11: |
Line 11: |
| | alias can also be defined in file ~/.bash_aliases.<br /> | | alias can also be defined in file ~/.bash_aliases.<br /> |
| | Example ~/.bash_aliases | | Example ~/.bash_aliases |
| − | <nowiki>alias clip='cat /media/sf_vmshared/clipboard' | + | <nowiki>alias clip="cat /media/sf_vmshared/clipboard" |
| − | alias dev_settings='export DJANGO_SETTINGS_MODULE=malwepid.settings.dev' | + | alias nanoclip="nano /media/sf_vmshared/clipboard" |
| − | alias foxy='ssh -ND 10.0.2.15:1111 -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com' | + | #alias runserver="python manage.py runserver 0.0.0.0:8888 --settings=malwepid.settings.dev" |
| | + | alias runserver="python manage.py runserver 0.0.0.0:8888" |
| | + | alias ssh_malwepid="ssh -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com" |
| | alias fpsim_fronend='ssh ubuntu@fpsim-frontend' | | alias fpsim_fronend='ssh ubuntu@fpsim-frontend' |
| − | alias fpsim_spark='ssh ubuntu@fpsim-frontend '\''ssh ubuntu@fpsim-spark'\''' | + | alias fpsim_spark="ssh ubuntu@fpsim-frontend 'ssh ubuntu@fpsim-spark'" |
| − | alias ls='ls --color=auto' | + | alias dev_settings="export DJANGO_SETTINGS_MODULE=malwepid.settings.dev" |
| − | alias nanoclip='nano /media/sf_vmshared/clipboard'
| + | alias tunnel_fsimdb="ssh -i ~/.ssh/DNC-FKY.pem -N -L 5555:fsim-dbpg.c9hdfwhhklwy.eu-central-1.rds.amazonaws.com:5432 ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com" |
| − | alias runserver='python manage.py runserver 0.0.0.0:8888'
| + | alias tunnel_newsdb="ssh -i ~/.ssh/rra_id.pem -N -L 5555:fsim-dbpg.c9hdfwhhklwy.eu-central-1.rds.amazonaws.com:5432 ubuntu@news.menupayapp.com" |
| − | alias ssh_malwepid='ssh -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com' | + | alias tunnel_news_adsl="ssh -i ~/.ssh/rt_rsa -ND 10.0.2.15:1111 rra@20.1.40.109" |
| − | alias tunnel_fsimdb='ssh -i ~/.ssh/DNC-FKY.pem -N -L 5555:fsim-dbpg.c9hdfwhhklwy.eu-central-1.rds.amazonaws.com:5432 ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com' | + | alias push="git push origin --all;git push gitlab --all;git push origin --tags;git push gitlab --tags" |
| − | alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' | + | alias pdgrt_remote_master_back="git remote set-url origin git@git.rra.lan:pdgrt/misiones/back-end.git;git remote add gitlab git@git.herrerosolis.com:BBVA-RedTeam/Django/pdgrt/master-back.git" |
| − | alias ls_loop="while true; do clear; ls -la; sleep 1; done" | + | alias pdgrt_remote_master_front="git remote set-url origin git@git.rra.lan:pdgrt/misiones/front-end.git;git remote add gitlab git@git.herrerosolis.com:BBVA-RedTeam/Django/pdgrt/master-front.git" |
| − | alias clock="while true; do clear; date; sleep 1; done"</nowiki> | + | alias pdgrt_remote_node_back="git remote set-url origin git@git.rra.lan:pdgrt/encargos/back-end.git;git remote add gitlab git@git.herrerosolis.com:BBVA-RedTeam/Django/pdgrt/node-back.git" |
| | + | alias pdgrt_remote_node_front="git remote set-url origin git@git.rra.lan:pdgrt/encargos/front-end.git;git remote add gitlab git@git.herrerosolis.com:BBVA-RedTeam/Django/pdgrt/node-front.git" |
| | + | alias pdgrt_remote_deploy="git remote set-url origin git@git.rra.lan:pdgrt/deploy.git;git remote add gitlab git@git.herrerosolis.com:BBVA-RedTeam/Django/pdgrt/deploy.git" |
| | + | alias dns="sudo cp ~/.openvpn/resolv.conf /etc" |
| | + | alias firefox='/opt/firefox/firefox' |
| | + | alias pilaf_settings="export DJANGO_SETTINGS_MODULE=pilaf_detectors.settings.test" |
| | + | alias mirror_log='tail -f /home/rafa/PycharmProjects/git_mirror/logs/git_mirror.log' |
| | + | |
| | + | |
| | + | # Proxy |
| | + | |
| | + | ETH0=$(ifconfig | grep -A 1 eth0 | grep inet | awk '{print $2}') |
| | + | TUN0=$(ifconfig | grep -A 1 tun0 | grep inet | awk '{print $2}') |
| | + | alias foxy="ssh -ND 127.0.0.1:1080 -i ~/.ssh/DNC-FKY.pem ubuntu@ec2-52-57-220-220.eu-central-1.compute.amazonaws.com" |
| | + | alias proxy_vpn="echo 'Opening SOCKS5 @$TUN0:1080' && ssh -ND $TUN0:1080 rafa@localhost" |
| | + | alias proxy_15="echo 'Opening SOCKS5 @$ETH0:1080' && ssh -ND $ETH0:1080 rafa@localhost"</nowiki> |
| | | | |
| | == Some usefull alias == | | == Some usefull alias == |