-
-
Save tonyseek/3431656 to your computer and use it in GitHub Desktop.
OVER GREAT FIREWALL DO ANYTHING
This file contains 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
#!/usr/bin/env sh | |
if [ -n "`ifconfig | grep tun`" ]; then | |
export http_proxy="http://10.x.x.x:xxxx" # this proxy could only be used throught VPN. | |
else | |
export http_proxy="http://127.0.0.1:8087" # this is goagent proxy | |
fi | |
export https_proxy=$http_proxy | |
if [[ -n "$@" ]]; then | |
$@ | |
else | |
echo $http_proxy | |
fi | |
## | |
# put this file at $HOME/.local/bin/owdo | |
## |
This file contains 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
$ owdo lynx http://pypi.python.org | |
$ sudo owdo pacman -Ss python2 | |
$ pip install tornado --proxy=`owdo` | |
$ owdo pip install tornado | |
$ source owdo | |
$ owdo yaourt -Ss goagent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1080 一般是 socks 代理..
可以考虑用我发的那个,成本低,一劳永逸