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

[推荐] win64 一键刷新程序 #136

Open
Weidows opened this issue Apr 24, 2022 · 10 comments
Open

[推荐] win64 一键刷新程序 #136

Weidows opened this issue Apr 24, 2022 · 10 comments

Comments

@Weidows
Copy link

Weidows commented Apr 24, 2022

https://github.com/Weidows-projects/scoop-3rd/releases/download/1.0.0/GitHub520.exe

依赖也打包进去了,直接运行就行; 没毒的, 原版 hosts 也会做备份 (hosts.bak)

GitHub520 片段不存在的话会添加,存在的话会刷新

源码在这: https://github.com/Weidows-projects/Keeper/blob/main/scripts/GitHub520/GitHub520.bat

@MoeCinnamo
Copy link

这的确是个好项目。

@MoeCinnamo
Copy link

可以用Fast-Github项目

@tangdaxians
Copy link

很赞

@Orange-es
Copy link

原版 hosts 也会做备份 (hosts.bak)
这个备份是自动备份还是需要自己去备份?

@Weidows
Copy link
Author

Weidows commented Jul 7, 2022

@Orange-es 运行后在 C:\Windows\System32\drivers\etc\ 这个目录里面就会自动出来 hosts.bak, 不需要手动, 目的为了防止出现意外导致原来的 hosts 丢失

@Orange-es
Copy link

hosts文件里面的内容确实修改了 但是没有出现hosts.bak的复制文件
然后cmd弹窗
jwgxEV.jpg
😓

@Weidows
Copy link
Author

Weidows commented Jul 7, 2022

hosts文件里面的内容确实修改了 但是没有出现hosts.bak的复制文件 然后cmd弹窗 jwgxEV.jpg 😓

右键管理员模式运行, 按道理讲这个文件位置不会有问题, 如果还有问题的话应该是你的windows UAC之类的问题

@Orange-es
Copy link

emm 管理员运行之后有了 复制文件,但是cmd窗口:
'sed' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
GitHub520 not exists, will append

能用就行把🤭

@Weidows
Copy link
Author

Weidows commented May 27, 2023

跟clash结合了下, 有点脱裤子放屁的感觉..
实测可以跳到hosts给的地址, 但感觉这地址不是很稳, 时好时坏, 还是节点好用

clash -> 配置文件预处理 配置样例如下 (最好自己再改下或者用下面我的, 这个配置样例不能像下图一样选择)
https://github.com/Weidows-projects/Programming-Configuration/blob/master/others/clash/hosts-example.yaml

下面是我用的整个配置
https://github.com/Weidows-projects/Programming-Configuration/blob/9372fe289906cfb327c7f34fd9b0c16f0c381ed0/others/clash/cfw-settings.yaml#L146-L637
image

@dyx9541
Copy link

dyx9541 commented Nov 28, 2023

还是好人多

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

No branches or pull requests

5 participants