Proxy

Wget

$ export http_proxy=http://192.168.116.1:1080
$ export https_proxy=$http_proxy

Curl

$ curl --socks5 192.168.116.1:1080

Yum

# echo "proxy=http://192.168.116.1:1080" >> /etc/yum.conf

Npm

$ npm config set proxy http://192.168.116.1:1080
$ npm config set https-proxy http://192.168.116.1:1080

Yarn

$ yarn config set proxy http://192.168.116.1:1080
$ yarn config set https-proxy http://192.168.116.1:1080

Git

$ git config --global http.proxy http://192.168.116.1:1080
$ git config --global https.proxy http://192.168.116.1:1080

Common

$ export HTTP_PROXY=http://192.168.116.1:1080
$ export HTTPS_PROXY=http://192.168.116.1:1080

Apt

$ cat apt_proxy.conf
Acquire::http::proxy "http://127.0.0.1:1080";
Acquire::ftp::proxy "http://127.0.0.1:1080";
Acquire::https::proxy "https://127.0.0.1:1080";

$ sudo apt-get -c ~/apt_proxy.conf update

vscode

"http.proxy": "http://127.0.0.1:1080",
"http.proxyStrictSSL": false,