用xargs让xray x25519 -i支持Linux管道 以私钥计算公钥

xray支持用x25519 -i带私钥来计算公钥。帮助信息如下: ubuntu@ubuntu22:~$ xray help x25519 usage: xray x25519 [-i "private key (base64.RawURLEncoding)"] Generate key pair for x25519 key exchange. Random: xray x25519 From private key: xray x25519 -i "private key (base64.RawURLEncoding)"

Xray x25519 密钥对、linux中的base64、golang中的base64.RawURLEncoding

玩了一下 Xray 上面的 Reality, 对其中生成 x2519 密钥对的过程感兴趣,拿到源码一看,还可以用 -i 参数带私钥进去计算公钥。

用指定版本commit的233脚本v3.67进行本地安装

233脚本有了大更新,对于各种Linux环境的适配还没有旧版本做得那么好。有些朋友怀念旧版本。那么我们可以用指定版本 (比如 v3.67) 的233脚本进行本地安装。

不用自己的域名和服务器搭博客的好处就是不怕异常流量

去年10月和最近两天,我的博客都有异常的流量访问。 不用自己的域名和服务器搭博客的好处是,随便这些流量怎么跑,对大公司(Google)来说,都是小意思。对我自己来说,属于完全不用花精力去思考。

用双引号" 在shell脚本中包住$()调用 解决sed命令报错问题

问题 在  Free.vps.vc 访问GitHub资源出错 用GithubProxy代理 用sed修改脚本内容  的过程中,发生一件奇怪的事情。 curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh | sed -E $(curl -L https://github.com/crazypeace/gh-proxy/raw/master/sed-E-para1) 正常执行,但下面这个就报错 curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh | sed -E $(curl -L https://github.com/crazypeace/gh-proxy/raw/master/sed-E-para)

sed不支持非贪婪匹配 改用perl

问题 之前   Free.vps.vc 访问GitHub资源出错 用GithubProxy代理 用sed修改脚本内容 实践: bash <(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/v2ray_wss/raw/main/install.sh   | sed -E "$(curl -L  https://github.crazypeace.workers.dev/ https://github.com/crazypeace/gh-proxy/raw/master/sed-E-para )" ) 发现这个处理方法并不完美。

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