Rename to hkt.sh

This commit is contained in:
mango
2026-03-21 01:10:53 +08:00
parent 76a263d0f9
commit 8f1171fe99
6676 changed files with 1724268 additions and 0 deletions

16
tmp/fix-nezha-clean.py Normal file
View File

@@ -0,0 +1,16 @@
import yaml
lines = []
with open("/tmp/nezha-config-raw.yaml") as f:
for line in f:
if not line.startswith("custom_code"):
lines.append(line)
config = yaml.safe_load("".join(lines))
# 不加 custom_code恢复默认
with open("/tmp/nezha-config-fixed.yaml", "w") as f:
yaml.dump(config, f, allow_unicode=True, default_flow_style=False)
print("done")