常用镜像源

nvm taobao镜像源

# ~/.zprofile
# nvm
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node  
export NVM_DIR="/home/kiyan/.nvm"  
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

npm taobao镜像源

# npm
npm config set registry https://registry.npm.taobao.org 

# yarn
yarn config set registry https://registry.npm.taobao.org/

# atom apm
apm config set registry https://registry.npm.taobao.org  

PhantomJS Mirror

npm config set phantomjs_cdnurl https://cnpmjs.org/downloads  

参考 https://www.npmjs.com/package/phantomjs-prebuilt

chromedriver mirror

npm config set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver  

参考 https://www.npmjs.com/package/chromedriver

rvm ruby-china镜像源

echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/db  

参考 https://ruby-china.org/wiki/rvm-guide

gem ruby-china镜像源

# 请尽可能用比较新的 RubyGems 版本,建议 2.6.x 以上。
$ gem update --system # 这里请翻墙一下
$ gem -v
2.6.3  
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.org  
# 确保只有 gems.ruby-china.org
# Bundler 的 Gem 源代码镜像命令。
$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org

参考 https://gems.ruby-china.org/

pypi 科大镜像源

# ~/.pip/pip.conf
[global]
index-url = https://mirrors.ustc.edu.cn/pypi/web/simple  
format = columns  

参考 https://lug.ustc.edu.cn/wiki/mirrors/help/pypi