Mercurial > index.cgi > dotfiles
comparison .bash_aliases @ 165:ab0fb2057b88
Proxy function for starting a proxy server & Chrome
author | Steve Huston <huston@astro.princeton.edu> |
---|---|
date | Mon, 13 Aug 2018 15:25:57 -0400 |
parents | 18429055e586 |
children | 88ed01a1094f |
comparison
equal
deleted
inserted
replaced
164:18429055e586 | 165:ab0fb2057b88 |
---|---|
68 fi | 68 fi |
69 ssh -t $T_HOST "ssh $1" | 69 ssh -t $T_HOST "ssh $1" |
70 } | 70 } |
71 alias x='ssh xanadu.astro.princeton.edu' | 71 alias x='ssh xanadu.astro.princeton.edu' |
72 | 72 |
73 # Proxying/tunneling - predominantly for my Mac laptop | |
74 proxy() { | |
75 PROXY_HOST=csesbh.princeton.edu | |
76 PROXY_PORT=8888 | |
77 ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15' | |
78 /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ | |
79 --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \ | |
80 --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \ | |
81 --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" & | |
82 } | |
83 | |
73 # Remote desktop/VNC | 84 # Remote desktop/VNC |
74 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" | 85 eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" |
75 # Xanadu VMs | 86 # Xanadu VMs |
76 eval "alias xvm='ssh -L9909:localhost:5909 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9909 &'" | 87 eval "alias xvm='ssh -L9909:localhost:5909 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9909 &'" |
77 eval "alias cygnus='ssh -L9910:localhost:5910 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9910 &'" | 88 eval "alias cygnus='ssh -L9910:localhost:5910 -f xanadu.astro.princeton.edu \"sleep 300\"; ${VNCVIEWER}localhost:9910 &'" |