博文

搭建 电报关键字提醒机器人 telegram keyword alert tgbot 抢 Hax US-OpenVZ

图片
白嫖 Hax Woiden 的人们都想抢一下“传说”中的 US-OpenVZ 或者 EU-BEST 小鸡。所以会关注 Hax  Woiden 库存频道等通知。但是又想过滤掉无关的信息。 那么可以用关键字提醒机器人。 GitHub: https://github.com/crazypeace/keyword_alert_bot

用spawn和expect自动回答脚本的提问 制作无人值守脚本 真正一把梭 以233v334.sh为例

图片
相信大家在使用了一段时间的各种一键脚本之后,会找到最适合自己的模式,也有了自己稳定的域名,UUID等参数。但是目前翻墙圈子里的一键脚本都喜欢做成大菜单的形式,这样每次使用的过程中, 都需要守在电脑前面选择各个选项,输入各个参数.  那有没有无人值守的方法呢? 每次安装可以真正做到一把梭? 可以把安装的命令浓缩成一行,放到Xshell的快捷命令按钮里?下面会以233v334.sh为例,讲解如何用spawn和expect自动回答脚本的提问,制作无人值守脚本,真正做到一把梭。 先看疗效 安装 expect apt install -y expect 基本原理 以安装 233脚本v3.34为例 先用 wget -N git.io/233v334.sh 下载脚本 然后在 bash 233v334.sh 的过程中自动回答问题 安装过程 Q & A   请选择 [1-2](默认Default 1.安装): 直接回车 传输协议 Transport mode (默认Default 1. TCP): 4 V2Ray 端口 Port (默认Default 63808): 直接回车 域名 Domain (例如:mydomain.com): ouyj.ga Input 4 for IPv4, 6 for IPv6 [4/6]: 4 是否已经正确解析? Is resolution correct? [y]: y 是否自动配置TLS? Setup auto TLS? [Y/n] (默认Default Y):   直接回车 是否开启 网站伪装 和 路径分流 Setup fake website and hide V2Ray behind a path? [Y/n] (默认Default Y): 直接回车 分流的路径 Path (默认Default [21d49e1e62c9]): 直接回车 伪装的网址 Camouflage site (默认Default [https://zelikk.blogspot.com]): 直接回车 是否开启广告拦截(会影响性能)  [y/N] (默认Default N): 直接回车 是否配置 Shadowsocks [y/N] (默认Default N): 直接回车 按 Enter 回车键 继续....或按 Ctrl + C 取消. 直接回车 对应 

美国国税局IRS推荐的汇率网站 及 月度 周期 平均汇率

图片
美国国税局IRS推荐的汇率网站 Oanda.com xe.com x-rates.com 来源: https://www.irs.gov/individuals/international-taxpayers/foreign-currency-and-currency-exchange-rates 月度平均汇率 快速查看每月数据列表 https://www.x-rates.com/average/?from=USD&to=EUR&amount=2&year=2022 周期平均汇率 https://www.oanda.com/fx-for-business/historical-rates 同时显示多个货币的汇率 https://www.oanda.com/fx-for-business/historical-rates

根据操作系统架构, 取最新版本Go编译环境, 编译NaïveProxy的Caddy

图片
一键执行 bash <(curl -L https://github.com/crazypeace/naive/raw/main/buildcaddy.sh) 作为我的NaiveProxy一键脚本的一部分,如果系统环境不能直接使用NaïveProxy作者编译出来的Caddy,那就自己编译一份吧。 参考 Go 官方安装过程 https://go.dev/doc/install NaïveProxy 官方编译流程 https://github.com/klzgrad/naiveproxy 其它脚本中的代码 https://github.com/shell-script/naivecaddy/blob/master/naivecaddy.sh https://lhy.life/20211218-naiveproxy/ https://github.com/233boy/v2ray/blob/master/install.sh

Shell在ping的结果中grep过滤IP地址 IPv4 IPv6

图片
IPv4的正则表达式 [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} 获得IPv4地址 ping 域名 - 4  -c 1 -W 2   | head -1 | grep -oP ' [0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ' | head -1  各个命令的意义就不啰嗦了,都可以查得到。 先说说 head -1 相当于 head -n 1 再说说为什么最后还要有个 head -1  因为如果结果是下面这样的话,grep -o 会得到2条结果 IPv6的正则表达式 ((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\

自定义端口NaiveProxy与Caddy V2前置的VLESS/Vmess V2Ray共存 可开CDN

图片
* 推荐使用 Xshell 的撰写窗格,这样多行命令可以写到撰写窗格里面执行。 1. 极简一键脚本搭 Caddy V2 前置的VLESS或Vmess+WebSocket+TLS   设置好域名解析, 如 vless.mydomain.com , CDN关掉 bash <(curl -L https://github.com/crazypeace/v2ray_wss/raw/main/install.sh) 搭完自己检查一下是否能正常使用 CDN可以开 2. 搭建NaiveProxy 2.1 设置域名解析, 如 np.mydomain.com , CDN关掉 -update- 所有以下这些步骤,我做成了一个一键脚本。执行这个脚本,以下步骤都不用手搓了。 bash <(curl -L https://github.com/crazypeace/naive/raw/main/install.sh) 2.2 用Caddy官方脚本安装Caddy 来源: https://caddyserver.com/docs/install#debian-ubuntu-raspbian sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list sudo apt update sudo apt install caddy 2.3 下载NaiveProxy作者编译的caddy https://github.com/klzgrad/forwardproxy/releases 找最新的版本 cd /tmp wget https://

The Hot3 in Last 30 Days

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

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