日常小技巧:域名解析、GitHub加速下载

使用HTTPDNS获取域名解析

有时,域名解析会被截断,或者我们单纯想知道域名对应的IP地址,手动写入本地host中。
阿里DNS提供在线解析:

https://dns.alidns.com/resolve?name=raw.githubusercontent.com.&type=1

如上所示,换成指定域名即可。

查询ip

GitHub加速下载

(每次要下载文件都百度,积攒了这些)

举个git例子:

#原本要下载:
git clone https://github.com/wanghuohuo0716/hybrid_A_star.git
#替换为:
git clone https://github.com.cnpmjs.org/wanghuohuo0716/hybrid_A_star.git
#或               hub.fastgit.org

比较偏僻的资源需要多试几次,等待缓存。

原文地址:https://www.cnblogs.com/achenger/p/13880850.html