I do not want waste time in GFW again.
~/.config/pip/pip.conf
[global]
proxy=https://localhost:1087
注意不支持socks5
在 文件 ~/.ssh/config
后添加下面两行
Host github.com
ProxyCommand nc -X 5 -x 127.0.0.1:1080 %h %p
https://gist.github.com/laispace/666dd7b27e9116faece6
socks5 = "127.0.0.1:1080"
add to ~/.curlrc
https://www.zhihu.com/question/31360766
这个浪费了好长时间额 ~/.gradle/gradle.properties
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=1087
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=1087
https://stackoverflow.com/questions/5991194/gradle-proxy-configuration
HTTP_PROXY=socks5:https://localhost:1080 go get
测试了下HTTPS_PROXY和ALL_PROXY都不起作用
npm config set proxy https://127.0.0.1:1087
npm config set https-proxy https://127.0.0.1:1087
用socks5就报错- -
推荐使用yarn,npm是真的慢
~/.gemrc
---
# See 'gem help env' for additional options.
http_proxy: https://localhost:1087
ALL_PROXY=socks5:https://localhost:1080 brew ...
~/.m2/settings.xml
<settings>
...
<proxies>
<proxy>
<id>example-proxy</id>
<active>true</active>
<!-- 代理协议 -->
<protocol>http</protocol>
<!-- 代理地址 -->
<host>proxy.example.com</host>
<!-- 代理端口 -->
<port>8080</port>
<!-- 如果代理不需要登陆,必须删除 username 和 password -->
<username>proxyuser</username>
<password>somepassword</password>
<!-- 不使用代理的站点,可以删除 -->
<nonProxyHosts>www.google.com|*.example.com</nonProxyHosts>
</proxy>
</proxies>
...
</settings>