Recently, Github, the largest gay dating website in the world, has become slower and slower to access. Even though scientific Internet access is still the same, it seriously affects my enthusiasm for the development of programmers in China. Therefore, I searched for several ways to speed up access, which are effective. Summed up all the acceleration methods, can’t just be three

  • Science and the Internet
  • Set the Host
  • Mirror station acceleration

The following is an introduction of the latter two ways of acceleration, as for why not say the first, you know

Host

Setting Host to speed things up works, but sometimes it still loads slowly. This can be set by using the library GitHub520, where the host is updated in real time and tested in person.

The Host content

# GitHub520 Host Start
185.199.108.154               github.githubassets.com
199.232.68.133                camo.githubusercontent.com
199.232.68.133                github.map.fastly.net
199.232.69.194                github.global.ssl.fastly.net
140.82.112.4                  gist.github.com
185.199.108.153               github.io
140.82.112.3                  github.com
140.82.112.6                  api.github.com
199.232.68.133                raw.githubusercontent.com
199.232.68.133                user-images.githubusercontent.com
199.232.68.133                favicons.githubusercontent.com
199.232.68.133                avatars5.githubusercontent.com
199.232.68.133                avatars4.githubusercontent.com
199.232.68.133                avatars3.githubusercontent.com
199.232.68.133                avatars2.githubusercontent.com
199.232.68.133                avatars1.githubusercontent.com
199.232.68.133                avatars0.githubusercontent.com
140.82.112.9                  codeload.github.com
52.216.20.123                 github-cloud.s3.amazonaws.com
52.216.106.116                github-com.s3.amazonaws.com
52.216.250.4                  github-production-release-asset-2e65be.s3.amazonaws.com
52.216.17.0                   github-production-user-asset-6210df.s3.amazonaws.com
52.216.236.43                 github-production-repository-file-5c1aeb.s3.amazonaws.com
# Star me GitHub url: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End
Copy the code

Data update time: 2020-09-12T08:44:11+08:00. For the latest data, please visit GitHub520

Modifying the host file

The hosts file is located in different locations on each system. The details are as follows:

  • Windows:C:\Windows\System32\drivers\etc\hosts
  • Linux system:/etc/hosts
  • Mac system:/etc/hosts
  • Android:/system/etc/hosts
  • IPhone (iOS) :/etc/hosts

Modify the method to copy the contents of the first step to the end of the text:

  1. Windows uses Notepad.
  2. Root permission for Linux and Mac:sudo vi /etc/hosts.
  3. IPhone, iPad must be jailbroken, Android must be root.

In most cases, it takes effect directly. If it does not take effect, try the following methods:

  1. Windows: Enter the following information in the CMD window:ipconfig /flushdns

  2. Linux command:sudo rcnscd restart

  3. Mac command:sudo killall -HUP mDNSResponder

Tips: If the above methods do not work, try restarting the machine.

There is also the way to automatically update host, GitHub520 is described

The mirror stand

Here’s a list of Github mirrors

Please do not log into your Github account on a mirror site

conclusion

It is recommended to set host to browse the repository, and then clone through the mirror station. Goodbye 👋