发现新文章

1178 字
6 分钟
记录
一些记录,不定时更新
1999年1月1日 00:00
0 次

zt重置设备ID#

在 ZeroTier 中,如果你通过克隆 VM 或复制系统镜像导致 设备 ID(Node ID)重复,需要重置设备 ID。ZeroTier 的设备 ID 是基于本机生成的私钥,无法在软件内直接修改,但可以通过以下方法重置:

方法 1:在 Linux / Debian 上重置

停止 ZeroTier 服务:

sudo systemctl stop zerotier-one

删除本地身份文件(Node ID):

sudo rm -rf /var/lib/zerotier-one/identity.*

注意:identity.* 文件包含你的 Node ID,如果删除,ZeroTier 会生成新的 Node ID。

启动 ZeroTier 服务:

sudo systemctl start zerotier-one

r2.py所需依赖#

pip install keyboard pyperclip pillow boto3 pyautogui

ShellClash#

用于在Linux上使用CLI来进行正向代理。通过导入标准的Clash config.yaml 来实现

https://github.com/juewuy/ShellCrash

Tg通知频道:https://t.me/ShellClash

bash -c "$(curl -kfsSl https://r2.072103.xyz/shellclash.sh)" && source /etc/profile &> /dev/null

打开CLI:clash、crash 导入配置文件:6-2 安装本地Web面板:9-4-1 开机自启:4-1

Vless通用配置(不加密)#

{
  "inbounds": [
    {
      "port": 1080,  // 监听端口,可以根据需要修改
      "protocol": "vless",  // 使用 VLESS 协议
      "settings": {
        "clients": [
          {
            "id": "0721-07210721onani",  // 这里是一个 UUID,用于识别用户
            "level": 0,  // 用户等级,设置为 0 表示普通用户
            "email": "user@example.com"  // 用户邮箱(可选)
          }
        ],
        "decryption": "none"  // 设置为 none,表示没有加密
      },
      "streamSettings": {
        "network": "tcp",  // 使用 TCP 网络
        "security": "none"  // 不使用加密,适用于 VLESS
      }
    }
  ],
  "outbounds": [
    {
      "protocol": "freedom",  // 允许自由流量通过
      "settings": {}
    }
  ],
  "routing": {
    "rules": []
  }
}

AMD笔记本优化#

目标:关闭fTPM并且禁止系统重新安装、关闭Windows自动更新

  • 关闭fTPM: 组策略编辑器:计算机配置 - 管理模板 - 系统 - 设备安装 - 设备安装限制 - 阻止安装与下列任何设备实例 ID 相匹配的设备 填写:设备管理器中的受信任的平台模块 2.0详细信息 - 设备实例路径中的值
  • 关闭Windows自动更新:计算机配置 - 管理模板 - Windows组件 - Windows更新中的:
    • 配置自动更新 - 已禁用
    • 删除所有使用Windows更新功能的访问权限 - 已启用
    • 不要连接任何Windows更新Internet位置 - 已启用
    • Windows更新不包括驱动更新 - 已启用

VPS融合怪测试脚本#

bash <(curl -sL kejilion.sh)
  • 融合怪测试:8-32
  • IP纯净度测试:8-4

哪吒探针Cloudflare版#

https://github.com/yumusb/nezha-new


VPS一键魔法脚本#

  • Hysteria2(UDP):

    bash <(curl -fsSL https://raw.githubusercontent.com/0x0129/hysteria2/main/install.sh) -port 0721
  • Vless+Trojan+Shadowsocks:

    bash <(curl -s -L https://git.io/v2ray.sh)
  • x-ui:

    bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

Hysteria2 服务端搭建(全平台通用)#

  1. 下载 Hysteria2 可执行文件: https://github.com/apernet/hysteria/releases

  2. 创建自签名SSL/TLS证书:

    • 创建私钥:openssl genpkey -algorithm RSA -out hy2.key
    • 创建证书签名请求:openssl req -new -key hy2.key -out hy2.csr
    • 创建证书:openssl x509 -req -in hy2.csr -signkey hy2.key -out hy2.crt -days 9999
  3. config.yaml

listen: :443 

tls:
  cert: hy2.crt 
  key: hy2.key 

auth:
  type: password
  password: 0721

masquerade: 
  type: proxy
  proxy:
    url: https://news.ycombinator.com/ 
    rewriteHost: true
  1. 启动 Hysteria2参数:server

  2. V2Ray客户端连接直链:

    hysteria2://0721@10.147.17.1:443?sni=bing.com&insecure=1#家里云

Cloudflare一键魔法#

下载 https://github.com/cmliu/edgetunnel/archive/refs/heads/main.zip 将它上传到Cloudflare Pages设置UUID。访问 https://你的域名.pages.dev/UUID


Cloudflare 优选方法#

A、AAAA、CNAME#

  1. B域名直接套CDN指向源站
  2. B域名开启SaaS,设置回退源为指向源站的域名,自定义主机名为A域名
  3. B域名指向优选域名,不套CDN
  4. A域名指向B域名指向的优选域名的域名 ,不套CDN

Cloudflare Pages#

  1. 直接在Pages创建自定义域
  2. 更改子域NS到阿里云云解析DNS
  3. 在阿里云云解析DNS设置解析分流

Cloudflare Workers#

  1. 直接在Workers创建路由,如:example.com/*
  2. 将被设置路由的域名解析到优选域名

Cloudflare 优选域名#

二叉树树自用: fenliu.072103.xyz

CM大佬: cf.090227.xyz

微测网:cloudflare.182682.xyz


魔法软件#

Windows:

https://github.com/2dust/v2rayN

Linux:

https://github.com/2dust/v2rayNG


使用Cloudflared中继RDP流量#

cloudflared access rdp --hostname rdp.onani.cn --url rdp://localhost:3380

FRP相关#

FRP基本认证参数#

auth.token = "07210721"

FRP systemd服务配置(开机自启)#

https://gofrp.org/zh-cn/docs/setup/systemd/

Linux Deb系安装Speedtest-cli#

apt install -y lsb-release ca-certificates apt-transport-https curl gnupg dpkg
curl -sSL https://packagecloud.io/ookla/speedtest-cli/gpgkey | gpg --dearmor > /usr/share/keyrings/speedtest.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/speedtest.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/speedtest.list

apt update
apt install -y speedtest

Linux监控面版:#

apt install s-tui

Windows超级牛逼包管理器:https://scoop.sh#


Linux各发行版安装注意#

  1. 非常新的版本一般才会有Realtek有线网卡的驱动
  2. 安装Debian要使用CLI安装(GUI安装会出现问题 具体的问题我忘了
  3. 安装CentOS/Rocky一定要先安装GUI,否则会导致上不了网
  4. 除了Arch连接网络使用iwd,其他发行版都可以用nmcli连接网络

国内Linux镜像注意事项#

  1. USTC(中科大源)经常会用JavaScript进行客户端验证,会导致wget和curl命令无法正确下载到文件绕过USTC的浏览器JS验证 | AcoFork Blog。建议使用TUNA(清华源)

国内Docker镜像#


安徽财贸职业学院教务学生正确入口(课表导入)#

https://authserver.afc.edu.cn/authserver/login

这篇文章是否对你有帮助?

发现错误或想要改进这篇文章?

在 GitHub 上编辑此页

文章修订历史 (42 次)

查看变更记录
4月4日 22:52:13 a694884

feat: 将所有存量文章时间统一减去8小时,修正时区偏移

3月18日 18:25:03 ed47440

fix: 更新图片链接并禁用背景图片加载函数

3月10日 20:23 2e8ac90

chore: remove AI summaries from posts

3月3日 22:16:01 0c701d9

docs: 统一博客文章AI摘要模型为gemini-3-flash-preview

2月25日 22:23:08 818735a

feat(posts): 为所有文章添加AI摘要并支持AI类型提示块

1月24日 16:19:25 d77c485

fix: 更新默认图片链接为本地路径

1月15日 16:04:10 29afb7a

fix: 更新图片链接并移除无用脚本

2025年12月28日 14:28:33 056b5c7

refactor(背景): 重构背景图片实现并更新相关配置

2025年12月27日 13:34:10 65545d5

fix(背景图片): 更新背景图片URL并优化加载逻辑

2025年12月23日 18:55:47 3dd60b3

refactor(背景图片): 重构背景图片加载逻辑并添加随机图片功能

2025年12月16日 14:43:30 a5f2a9d

fix: 修复背景图片URL中的重复https协议问题

2025年12月16日 14:20:58 34e737e

chore: 更新图片链接和统计服务域名

2025年12月15日 23:34:34 b686b56

docs: 更新文章中的图片链接

2025年12月15日 23:23:09 20219bd

chore: 更新图片链接和添加重定向配置

2025年12月9日 21:00:08 ee5358d

docs: 更新文章中的图片链接域名

2025年11月24日 09:56:45 3e5013c

post: 添加教务正确入口

2025年10月11日 20:14:57 e8d0852

chore: 更新Obsidian工作区配置中的文件引用

2025年8月26日 19:06:31 ada228f

docs(posts): 更新记录文档中的命令格式和shellclash安装链接

2025年8月26日 01:52:48 8bc391a

docs: 添加ZeroTier重置设备ID的文档说明

2025年8月22日 02:14:49 cbf7993

fix: 更新图片链接从h到ua版本

2025年8月12日 01:30:38 356a3ab

update: 更新图片链接域名从eo-pic到eopageapi

2025年8月6日 22:38 e867cca

docs(posts): 更新记录文章的图片链接

2025年8月1日 08:16:25 2f74587

!update: 将图源由R2改为Netlify

2025年7月29日 09:04:08 870e718

docs: 更新关于页面的博客名称变更记录

2025年7月27日 19:57:09 6f2db52

docs: 更新文档中的图片链接和超链接

2025年7月26日 21:45:45 593e36e

docs: 将AcoFork Blog统一更名为二叉树树的博客

2025年7月26日 09:15:27 98609b5

feat: 更改域名为2x.nz

2025年7月19日 16:52:49 146fe9b

更改图源为EdgeOne

2025年7月19日 16:09:57 9bf0d90

chore: 更新图片域名从eo-r2.2x.nz到r2.afo.im

2025年7月19日 15:18:58 f5afef1

更改图源为EdgeOne

2025年7月18日 12:27:16 c7e56a3

1

2025年7月1日 23:29:28 4e3e7e8

posts: 更改图源CDN为Secbit MCDN,并且页脚放置赞助信息

2025年6月30日 06:21:32 49b80b0

docs: 更新文章标签和页脚版权年份

2025年6月26日 21:07:29 b480111

update: 更新R2源。删除302

2025年6月25日 07:44:10 8160741

post: 更新文章:《记录》。为优选域名添加图片

2025年6月25日 07:31:28 e67943b

post: 更新文章:《记录》。添加本人自用域名

2025年6月24日 02:25:33 4a5495f

posts: 更新文章:《记录》。修复了部分链接让用户砍传奇的Bug

2025年6月24日 02:05:48 d697e37

posts: 更新文章:《试试Cloudflare IP优选!让Cloudflare在国内再也不是减速器!》。修正Worker反代代码未定义问题以及部分文案修改

2025年6月24日 01:50 8f609a3

post: 更新文章记录删去一个无意义的无序列表

2025年6月24日 01:47:52 07b5201

posts: 更新文章:《试试Cloudflare IP优选!让Cloudflare在国内再也不是减速器!》。添加了Worker反代并优选全球的新方案。添加了新的俩域名无限优选的方法(基于新的自定义源服务器);更新文章:《记录》。删去了一个无效的Cloudflare优选域名

2025年5月2日 21:18:16 db77eb2

更新ShellClash安装脚本的下载链接

2025年4月30日 08:38:25 d80a293

初始化

记录
作者
二叉树树
发布于
1999年1月1日 00:00
许可协议
CC BY-NC-SA 4.0