Since the cloud machine I bought from Tencent could is banned from internet services outside of China, so I try to build up a proxy server in the US to help me to do regular Github pull/clone
buy a EC2
I used to buy cloud machine in AWS however due to some reason, I runoutof USD in China so I choosed vultr which could use Alipay
download tinyproxy
apt-get tinyproxy
service tinyproxy start
turn off the firewall on a specific port
sudo iptables -A INPUT -p tcp --dport 8889 -j ACCEPT
make sure you have everything setted up
curl www.baidu.com --proxy 137.220.38.8:8889
curl www.baidu.com --proxy 137.220.38.8:8889 -k
other useful cli
systemctl status tinyproxy