github
sudo vim /etc/hosts
手动添加
# Github
151.101.185.194 github.global.ssl.fastly.net
192.30.253.112 github.com
151.101.112.133 assets-cdn.github.com
151.101.184.133 assets-cdn.github.com
185.199.108.153 documentcloud.github.com
192.30.253.118 gist.github.com
185.199.108.153 help.github.com
192.30.253.120 nodeload.github.com
151.101.112.133 raw.github.com
23.21.63.56 status.github.com
192.30.253.1668 training.github.com
192.30.253.112 www.github.com
151.101.13.194 github.global.ssl.fastly.net
151.101.12.133 avatars0.githubusercontent.com
151.101.112.133 avatars1.githubusercontent.com
输入i,变为insert插入模式
按esc,然后输入:wq!保存并退出
刷新dns
dscacheutil -flushcache
arxiv
用国内镜像
http://xxx.itp.ac.cn/
指定链接也加在后面
coursera
hosts 添加
52.84.246.72 d3c33hcgiwev3.cloudfront.net
52.84.246.90 d3c33hcgiwev3.cloudfront.net
52.84.246.252 d3c33hcgiwev3.cloudfront.net
52.84.246.144 d3c33hcgiwev3.cloudfront.net
52.84.246.72 d3c33hcgiwev3.cloudfront.net
52.84.246.106 d3c33hcgiwev3.cloudfront.net
52.84.246.135 d3c33hcgiwev3.cloudfront.net
52.84.246.114 d3c33hcgiwev3.cloudfront.net
52.84.246.90 d3c33hcgiwev3.cloudfront.net
52.84.246.227 d3c33hcgiwev3.cloudfront.net