# HG changeset patch # User Steve Huston # Date 1534188357 14400 # Node ID ab0fb2057b8806c88e26cb9aabf41b350df63806 # Parent 18429055e586ea3aaba9886365c5e398512c6ebc Proxy function for starting a proxy server & Chrome diff -r 18429055e586 -r ab0fb2057b88 .bash_aliases --- 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