Created
May 6, 2016 17:04
-
-
Save ephemient/168f24101b8119ca4f50d55720f38956 to your computer and use it in GitHub Desktop.
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
#!/bin/bash -ex | |
PROFILE=$(mktemp -d) | |
trap 'rm -rf "${PROFILE}"' 0 | |
coproc ssh -Snone -D1080 ${GW:?} 'echo -n 1; cat' | |
read -r -n 1 -u ${COPROC[0]} | |
google-chrome-stable --proxy-server=socks5://localhost:1080 --host-resolver-rules='MAP * 0.0.0.0 , exclude localhost' --user-data-dir="${PROFILE}" --no-first-run "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment