Convert Shadow(remove)socks into an HTTP proxy

2015-12-09(Wed) by

First run polipo with parent proxy set to Shadow(remove)socks

apt-get install polipo
service polipo stop
polipo socksParentProxy=localhost:1080
service polipo start

Then you can play with the HTTP proxy

http_proxy=http://localhost:8123 apt-get update

http_proxy=http://localhost:8123 curl

http_proxy=http://localhost:8123 wget

git config --global http.proxy
git clone
git xxx
git xxx
git config --global --unset-all http.proxy