Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

科学上网(mac系统) #28

Open
licoded opened this issue Dec 18, 2021 · 4 comments
Open

科学上网(mac系统) #28

licoded opened this issue Dec 18, 2021 · 4 comments

Comments

@licoded
Copy link
Owner

licoded commented Dec 18, 2021

fq是程序员必备技能之一,毕竟离开了Google怎么修得好BUG啊

虽然是以mac系统作为例子,但内容也大都适用于windows系统,只不过windows可能会遇到一些奇奇怪怪的问题

@licoded
Copy link
Owner Author

licoded commented Dec 18, 2021

镜像加速方法

用到了一些常见库,比如jquery、mathjax、ngprogress

参考链接:免费CDN:jsDelivr+Github 使用方法

这些库大都在github上有副本,可以借助jsDelivr的CDN进行加速

git clone --depth=1

设置--depth=1后,只拉取最后一次commit(提交),需要下载的文件体积会大大减少

方式一:替换github.com即可

  • github.com.cnpmjs.org
  • hub.fastgit.org

方式二:奇奇怪怪的用法

https://github.91chi.fun//https://github.com

方式三:chrome插件推荐

GitHub加速

@licoded
Copy link
Owner Author

licoded commented Dec 18, 2021

使用 Proxy SwitchyOmega 管理切换代理

设置代理服务器

image

我使用的代理软件是 ClashX,不同的软件的代理端口可能不一致

导入gfw规则

gfw的GitHub仓库

image

@licoded
Copy link
Owner Author

licoded commented Feb 28, 2022

设置命令行代理

Mac / Linux

export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890

Windows

set HTTP_PROXY=http://127.0.0.1:7890 HTTPS_PROXY=http://127.0.0.1:7890 ALL_PROXY=socks5://127.0.0.1:7890

@moduxiaohunhun
Copy link

hello , could I get your wechat number?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants