Using mirror speed up ,just feeling fly
#github
选择从GitHub/GitLab导入仓库
使用新地址拉代码 `git clone https://gitee.com/xxx/XXX`
远程仓库地址更换 `git remote set-url origin <新的远程仓库地址> `
git clone https://github.com/author/repo
git clone https://hub.fastgit.org/author/repo
同样对 raw.githubusercontent.com/ 进行了代理,地址为 raw.fastgit.org/。
#arxiv
网址中`https://`更换为`cn.` `中科院`镜像
简单来说,为了防止自己的idea在论文被收录前被别人剽窃,我们会将预稿上传到arvix作为预收录,因此这就是个可以证明论文原创性(上传时间戳)的文档收录网站 。arXiv(X依希腊文的χ发音,读音如英语的 archive(中文意思:档案),谐音:阿凯夫)
#npm
#切换源 或 http://r.cnpmjs.org/
npm config set registry https://registry.npm.taobao.org
#cnpm代替npm 或临时指定 --registry
npm install -g cnpm --registry=https://registry.npm.taobao.org
#docker
#查询镜像获取镜像路径
阿里云[需登陆]:会生成特定子域名代理地址
daocloud镜像市场:https://hub.daocloud.io/
#或使用加速器 需注册获取专属镜像地址 并配置registry-mirrors
https://www.daocloud.io/mirror
#mvn
#参考 https://maven.aliyun.com/mvn/view
#修改 setting.xml
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central,jcenter</mirrorOf>
</mirror>
#pom指定特定repository
<repository>
<id>spring</id>
<url>https://maven.aliyun.com/repository/spring</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
#Alpine
cp /etc/apk/repositories /etc/apk/repositories.bk
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
#ubuntu
#阿里源 或 清华源 https://mirrors.tuna.tsinghua.edu.cn/ubuntu/
cp /etc/apt/sources.list /etc/apt/sources.list.bk
sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list
apt-get clean
#pypi
#
临时指定
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
#清华源
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple