pip
~/.config/pip/pip.conf[global]
proxy=http://localhost:1087
注意不支持socks5Reference
git
clone with ssh
在 文件~/.ssh/config
后添加下面两行Host github.com
ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p
clone with http
git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy http://127.0.0.1:1087
建议使用http, 因为socks5 在使用git-lfs时会报错proxyconnect tcp: dial tcp: lookup socks5: no such host
Reference
https://gist.github.com/laispace/666dd7b27e9116faece6curl
socks5 = "127.0.0.1:1080"
~/.curlrc
Reference
https://www.zhihu.com/question/31360766Gradle
这个浪费了好长时间额 ~/.gradle/gradle.propertiessystemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1087
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1087
Reference
https://stackoverflow.com/questions/5991194/gradle-proxy-configurationgo get
HTTP_PROXY=socks5://localhost:1080 go get
测试了下HTTPS_PROXY和ALL_PROXY都不起作用npm
npm config set proxy http://127.0.0.1:1087
npm config set https-proxy http://127.0.0.1:1087
用socks5就报错- -推荐使用yarn,npm是真的慢
reference
yarn
yarn config set proxy http://XX
yarn config set https-proxy http://XX
不支持socks5Reference
https://github.com/yarnpkg/yarn/issues/3418gem
~/.gemrc---
# See 'gem help env' for additional options.
http_proxy: http://localhost:1087
reference
brew
ALL_PROXY=socks5://localhost:1080 brew ...
wget
use_proxy=yes
http_proxy=127.0.0.1:1087
https_proxy=127.0.0.1:1087
~/.wgetrc
No comments:
Post a Comment