如何加快github和stackoverflow


前言

​ 在工作上,我们有时候需要使用GitHub去下载代码,但因为有墙的原因,往往网页打开很慢,下载很慢。stack overflow也是如此,那么本文就解决三个问题,而网上有许多解决博客,而我本篇就只当搬运工。

  1. github打开慢
  2. github下载慢
  3. stack overflow打开慢

github打开慢

https://www.jianshu.com/p/0493dcc15d6f

https://github.com.ipaddress.com/

github下载慢

可以用码云这个工具人,具体操作:

https://blog.csdn.net/qing666888/article/details/79123742

stack overflow打开慢

原因:

stackOverflow打开慢并不是stackoverflow被墙,而是stackvoerflow用了google的api,然后国内google是用不了的,所以导致加载慢,出现样式错乱,不能注册,不能登录等等一系列问题。

解决办法:

参考了这篇博客:https://my.oschina.net/u/4000302/blog/3042609

在本地host文件,路径一般是:C:\Windows\System32\drivers\etc。

加入:一开始加入104.19.196.151 ajax.googleapis.com,打开速度快多了,后面换成127.0.0.1 ajax.googleapis.com,直接访问本地地址。

其他办法:下载插件,将Google CDN 替换成国内的了。具体可参考博客:https://www.cnblogs.com/sese/p/10271964.html

最后附上我的host:

## stackoverflow
127.0.0.1       ajax.googleapis.com
# Github
#
# acclerate github.com touch speed
## github
151.101.44.249 github.global.ssl.fastly.net
192.30.255.112 github.com
199.232.28.133 assets-cdn.github.com
185.199.109.153 documentcloud.github.com
192.30.253.119 gist.github.com
185.199.110.154 help.github.com
140.82.114.10 nodeload.github.com
151.101.0.133 raw.github.com
185.199.108.153 githubstatus.com
140.82.114.17 training.github.com
199.232.28.133 raw.githubusercontent.com
199.232.28.133 gist.githubusercontent.com
199.232.28.133 cloud.githubusercontent.com
199.232.28.133 camo.githubusercontent.com
199.232.28.133 avatars0.githubusercontent.com
199.232.28.133 avatars1.githubusercontent.com
199.232.28.133 avatars2.githubusercontent.com
199.232.28.133 avatars3.githubusercontent.com
199.232.28.133 avatars4.githubusercontent.com
199.232.28.133 avatars5.githubusercontent.com
199.232.28.133 avatars6.githubusercontent.com
199.232.28.133 avatars7.githubusercontent.com
199.232.28.133 avatars8.githubusercontent.com
192.30.253.120 codeload.github.com

文章作者: XuKun Chen
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 XuKun Chen !
评论
 上一篇
freeMark导出word图片的问题 freeMark导出word图片的问题
1.项目目的​ 根据项目的需要做一个导出word的功能,本文是处理图片的问题,因为freeMark语法比较简单,所以不介绍了,这里只介绍导出word图片需要注意事项总结。 2.注意事项2.1导出为WPS​ 首先无论W
下一篇 
HTTP详解 HTTP详解
面试官,别问我 HTTP 了!看这 30 张图就行!PS:以下文章来源于公众号小林coding ,作者小林coding,本人觉得不错就先收藏起来。 前言在面试过程中,HTTP 被提问的概率还是比较高的。 这里搜集了 5 大类 HTTP 面试
  目录