Skip to content

Instantly share code, notes, and snippets.

@Hansimov
Last active June 27, 2023 12:45
Show Gist options
  • Save Hansimov/239c04d090022239824b43107d78da57 to your computer and use it in GitHub Desktop.
Save Hansimov/239c04d090022239824b43107d78da57 to your computer and use it in GitHub Desktop.
All kinds of proxies I use in multiple environments
# Corp Desk PC: System Proxy setttings
http://proxy-dmz.intel.com:912

# Corp Desk PC: `*/pip/pip.ini`
# flexdlmega1.sh.intel.com: `~/.pip/pip.conf`
[global]
proxy = http://child-prc.intel.com:913
index-url = https://pypi.tuna.tsinghua.edu.cn/simple 
trusted-host = pypi.tuna.tsinghua.edu.cn

# SC disks: `~/.cshrc.zehanyu`
setenv http_proxy http://proxy-dmz.intel.com:911
setenv https_proxy http://proxy-dmz.intel.com:912
setenv no_proxy .intel.com

# flexdlmega1.sh.intel.com: `~/.bashrc`
export http_proxy=http://proxy-prc.intel.com:912
export https_proxy=http://proxy-prc.intel.com:912

# npm
npm config set http://proxy-prc.intel.com:912
npm config set registry https://registry.npmmirror.com
npm config set strict-ssl false

# nvm
nvm proxy http://localhost:11111

  # For Laptop:
  npm config set http://child-prc.intel.com:913
  npm config get registry
  npm config set registry https://registry.npmjs.org
@Hansimov
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment