博文

目前显示的是标签为“Github”的博文

GitHub Proxy 支持 api.github.com

图片
在使用GitHub Proxy代理 warp 脚本时,发现在调用api.github.com时报错。 经查, gh-proxy 没有加入对api.github.com的支持 https://github.com/hunshcn/gh-proxy/issues/44 那么就自己加一下吧。 修改内容很简单,前面部分,过滤格式增加一行 const exp7 = /^(?:https?:\/\/)?api\.github\.com\/.+?\/.+?\/.*$/i 后面部分,判断格式的地方加一个 || path.search(exp7) === 0  ====== 完 Github:  https://github.com/crazypeace/gh-proxy ====== 实例 bash <(curl  https://github.crazypeace.workers.dev/ https://raw.githubusercontent.com/P3TERX/warp.sh/main/warp.sh   | perl -pe "$(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/gh-proxy/raw/master/perl-pe-para )" ) 4

在IPv6 only FreeVPSvc VPS访问GitHub一键脚本失败的时候,用GitHub Proxy解决问题

图片
原理: Free.vps.vc 访问GitHub资源出错 用GithubProxy代理 用sed修改脚本内容 sed不支持非贪婪匹配 改用perl 网页工具 https://crazypeace.github.io/gh-proxy/ https://ghproxy.crazypeace.workers.dev/ 使用演示 实例: 极简一键脚本 搭V2Ray 修改前 bash <(curl -L  https://github.com/crazypeace/v2ray_wss/raw/main/install.sh ) 修改后 bash <(curl -L  https://ghproxy.crazypeace.workers.dev/ https://github.com/crazypeace/v2ray_wss/raw/main/install.sh   | perl -pe "$(curl -L  https://ghproxy.crazypeace.workers.dev/ https://github.com/crazypeace/gh-proxy/raw/master/perl-pe-para )" ) 一键WARP开IPv4入站 修改前 bash <(curl -L  https://raw.githubusercontent.com/P3TERX/warp.sh/main/warp.sh ) 4 修改后 bash <(curl -L  https://ghproxy.crazypeace.workers.dev/ https://raw.githubusercontent.com/P3TERX/warp.sh/main/warp.sh   | perl -pe "$(curl -L  https://ghproxy.crazypeace.workers.dev/ https://github.com/crazypeace/gh-proxy/raw/master/perl-pe-para )" ) 4

Free.vps.vc 访问GitHub资源出错 用GithubProxy代理 用sed修改脚本内容

图片
问题 Free.vps.vc 访问GitHub资源出错 --update sed不支持非贪婪匹配 改用perl 修改后 bash <(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/v2ray_wss/raw/main/install.sh   | perl -pe "$(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/gh-proxy/raw/master/perl-pe-para )" ) 解决思路 用 GitHub Proxy 代理 source:  https://github.com/hunshcn/gh-proxy 要么fork一份脚本,自己修改添加gh-proxy,如下文教程 如何设置自定义gh-proxy参数使用我的warp脚本 要么就把脚本下载到本地,然后修改脚本。有手搓和sed命令替换两条路。 手搓方法 1. 自己搭 或者 使用现成的 GitHub Proxy . 以  https://github.crazypeace.workers.dev/  为例 2. 在你的 GitHub 资源 url 的前面加上 GitHub Proxy 的 url  如: bash <(curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh) 修改为 bash <(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/v2ray_wss/raw/main/install.sh) 3. 如果你的资源是一个脚本,而这个脚本里面访问了GitHub资源 3.1 那么你可以先 wget 下来 wget  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/v2ray_wss/raw/main/install.sh 这里下载下来的是文件名是 install.sh

从一个GitHub上的Issue想到的

最近更新了一下一键脚本,把切换到Vmess协议的功能加上了。想出来了一个几乎不影响原有使用体验,脚本结构足够简单,后续维护和解释的工作量比较小的方案。欢迎有Vmess协议需求的来试用。 bash <(curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh) 我在这里想扯一点别的,关于一个Issue https://github.com/crazypeace/v2ray_wss/issues/7 这个Issue的原作者向我提了几个问题,一个是怎么在VPS上搭建Subconverter,一个是希望我的脚本支持搭建Vmess协议。我印象中TA的语气还是很客气的。 我回复的内容基本上是拒绝了他,当然我还是解释了几句,表达了我自己对这些需求的想法。 过了几天时间,这个Issue的作者把Issue清空了,标题和内容都改成了“算了”。 我想关于这个清空和“算了”说几句。 首先,我很感谢他给我回应。像这样的“小品”工具,有一些bug,或者改进的缺点,或者新功能的需求,或者实现方案的思路,是需要广大的使用者反馈的。光作者一个人使用常常是遇不到大家这么多种实际使用情况的。闭门造车的效果也很差。我以前只是在博客简单写写,没有在Telegram上大量加入群组,没有把自己作品使劲推广给大家的时候,我是收不到什么反馈的。我也一直自我感觉良好。直到把作品推给大家,为了解释和辅助去写详细的教程,去接触其它人的作品,学习大家的优点,找准自己的定位…… 在这样的过程中,我才觉得很快就有了很多收获。 其次,我想说,在开源的世界里,开发者是有极大的权利的。在这个世界里,就是很直接的靠能力说话,你行你上,摆事实讲道理说明你的观点。如果作者不同意你的想法,你就fork一份,让大家都来喜欢用你的fork, 用事实证明你是对的。 最后,我觉得,当你提出一份Issue时,你是这份Issue的作者。 我印象中当时TA的描述还是比较好的,语气也很客气。我当时回复TA时,我只是考虑到自己开发和维护的工作量而拒绝了他。这确实是我的想法,很长一段时间我觉得如果想用Vmess的话,有 八合一 等脚本可以搭出来,那就不用我的VLESS脚本。我希望我的脚本足够简单,能成为一个大家学习自己写脚本的原料。我觉得TA在那份Issue中的表达确实是有其自

Shell脚本支持设置gh-proxy参数 解决raw.githubusercontents.com command not found问题

图片
最近在hax woiden上访问带S的raw.githubusercontent s .com脚本会报错command not found 原因是raw.githubusercontent s .com并非官方服务,现在这个服务临时关闭了。 使用自建 gh-proxy 可以解决访问脚本的问题,但是脚本里面再访问github资源怎么办呢? 所以脚本需要支持带gh-proxy的参数,在脚本里面访问github资源的时候前面加上gh-proxy

使用Cloudflare Worker自建GitHub Proxy代理 解决raw.githubusercontents.com command not found问题

图片
最近在hax woiden上访问带S的raw.githubusercontent s .com脚本会报错command not found 现象如下: /dev/fd/63: line 1: $'\347\275\221\347\253\231\347\273\264\346\212\244\343\200\202': command not found /dev/fd/63: line 1: 网站维护。: command not found 查了一下,这个服务并不是GitHub官方的,目前暂停了。 消息源: https://github.com/7ednet/yard/discussions/11 所以我们需要搭一个自己的GitHub代理。

Woiden Hax-OpenVZ VPS visit GitHub failed "port 443: Connection timed out" Troubleshooting

图片
The network environment of Woiden VPS has changed, and direct access to GitHub often encounters the following problems curl: (28) Failed to connect to api.github.com port 443: Connection timed out Solution: Open TUN; Install WARP to cover the useless IPv4 outbound on woiden; Modify the /etc/wireguard/wgcf.conf to make original IPv4 inbound for SSH still available; Do what you want (access GitHub?)

Woiden Hax-OpenVZ VPS 跑GitHub脚本报错 port 443: Connection timed out

图片
Hax / Woiden最近不太平,续期经常失败。所以经过删鸡开鸡之后,需要重装跑脚本搭梯子。 在Woiden EU-4 EU-8上面尝试跑GitHub脚本时,会遇到类似如下报错: curl: (28) Failed to connect to api.github.com port 443: Connection timed out 解决方案: 打开TUN模式; WARP安装IPv4出站; 跑GitHub脚本.

Web页面上操作GitHub同步merge上游代码

图片
我不是一个重度开发人员。所以我不喜欢命令行操作GitHub的方式。 如果你的fork的分支的上游修改了代码,要如何与上游同步呢?当然你可以删掉你的fork再重新fork一份。你也可以从上游merge到你的分支。

想用的GitHub脚本删库了Repository Deleted怎么办?

图片
使用开源代码最怕的就是作者删库了. 相信这也是为什么大家经常随手Fork一份的原因. (当然, Fork之前应该Star一下 (ツ) ) 如果你就是忘了Fork一份, 作者又删库了, 那怎么办呢?

Blogger应用text-autospace.js给中英文之间 添加空格 用Github Pages解决MIME type mismatch问题 引入jquery解决$ is not a function问题

图片
添加<script src='https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js'/> 添加<script src='https://crazypeace.github.io/text-autospace.js/text-autospace.min.js'/>

HAX VPS US-1 的实例 访问 Github 有问题 影响脚本执行

图片
新方法: 在VPS访问GitHub一键脚本失败的时候,用GitHub Proxy解决问题 update on 2022-7-7 git.io 和 raw.githubusercontent.com 可以在IPv6环境下访问了。 而且访问 raw.githubusercontents.com 报错504 You can access git.io and raw.githubusercontent.com in only IPv6 environment. You get HTTP 504 when you access raw.githubusercontents.com 直接用 bash <(curl -L git.io/warp.sh) 4 就可以了。 以下为历史遗迹

如何用 GitHub 上的旧版本官方脚本安装旧版本的软件

图片
 如何用 V2ray V4.27.0 的官方脚本安装 V2ray V4.27.0

下载github上某个指定commit(版本)的代码

图片
在github上,有些repo更新了所谓的版本,但是并不会打包发release(比如:233脚本) 那么我们只能根据commit下载代码

用 Github Action 在 IBM Cloud Foundry 上部署 V2Ray

https://github.com/crazypeace/v2fly-cf

IBM CF Github Action 重启脚本

图片
参考  https://github.com/tlmoe/v2fly-cf/blob/master/.github/workflows/deploy-to-ibm.yml 脚本如下:(已提交到  https://github.com/crazypeace/IBMYes/blob/master/.github/workflows/ibm.yml  )

IBM CF 搭 V2Ray 梯子 免费 白嫖

图片
这里的CF不是Cloudflare,而是Cloud Foundry IBM的Cloud Foundry有轻量的免费使用额度,而且流量无限。所以我们可以用来搭一个还行的梯子。

The Hot3 in Last 30 Days

无服务器 自建短链服务 Url-Shorten-Worker 完整的部署教程

ClouDNS .asia免费域名 托管到CloudFlare开CDN白嫖Websocket WS通道翻墙 / desec.io