Created
September 4, 2012 08:37
-
-
Save kenoir/3618577 to your computer and use it in GitHub Desktop.
Proxy stuff for reith
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
> cat ~/proxies_off | |
#!/bin/sh | |
echo "Proxies OFF" | |
unset HTTP_PROXY | |
unset ALL_PROXY | |
unset http_proxy | |
unset HTTPS_PROXY | |
unset https_proxy | |
git config --global http.proxy "" | |
mv ~/.ssh/config ~/.ssh/config.off | |
> cat ~/proxies_on | |
#!/bin/sh | |
echo "Proxies ON" | |
export HTTP_PROXY=http://www-cache.reith.bbc.co.uk:80 | |
export ALL_PROXY=http://www-cache.reith.bbc.co.uk:80 | |
export http_proxy=http://www-cache.reith.bbc.co.uk:80 | |
export HTTPS_PROXY=http://www-cache.reith.bbc.co.uk:80 | |
export https_proxy=http://www-cache.reith.bbc.co.uk:80 | |
git config --global http.proxy http://www-cache.reith.bbc.co.uk:80 | |
mv ~/.ssh/config.off ~/.ssh/config | |
> cat ~/.ssh/config | |
Host * | |
ProxyCommand nc -x socks-gw.reith.bbc.co.uk:1085 %h %p | |
> cat ~/.bash_profile | |
alias on_reith=". proxies_on" | |
alias off_reith=". proxies_off" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment