Mercurial > index.cgi > dotfiles
changeset 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 | d7cd94900d0e |
files | .bash_aliases |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.bash_aliases Mon Aug 13 14:51:20 2018 -0400 +++ b/.bash_aliases Mon Aug 13 15:25:57 2018 -0400 @@ -70,6 +70,17 @@ } alias x='ssh xanadu.astro.princeton.edu' +# Proxying/tunneling - predominantly for my Mac laptop +proxy() { + PROXY_HOST=csesbh.princeton.edu + PROXY_PORT=8888 + ssh -D $PROXY_PORT -f -C -q $PROXY_HOST 'sleep 15' + /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \ + --proxy-server="socks5://127.0.0.1:$PROXY_PORT" \ + --host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE localhost" \ + --user-data-dir="/Users/huston/Library/Application Support/Google/Chrome/ProxiedProfile" & +} + # Remote desktop/VNC eval "alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net \"sleep 5\"; ${VNCVIEWER}localhost:9930 &'" # Xanadu VMs