Contents

git

1
2
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

sbt

1
sbt  -DsocksProxyHost=127.0.0.1 DsocksProxyPort=1080

npm
npm是先通过neesocks把socks5转成http proxy

1
2
3
npm config set http http://127.0.0.1:1081
npm config set https-proxy http://127.0.0.1:1081
DEBUG=proxy kneesocks 1081 1080

socks5转http

1
2
3
4
apt install privoxy
vi /etc/privoxy/config
增加一行:
forward-socks5 / socks.domain:1080 .

hexo镜像设定
‘’’
可以设定环境变量
export HEX_MIRROR=”https://hexpm.upyun.com"
export HEX_CDN=”https://hexpm.upyun.com"
也可以写入到rebar.conf里面
https://hex.pm/docs/mirrors
‘’’

Contents