Initial resurrection kit — 81 scripts, 62 references, configs, systemd units, crons, Docker compose files, Caddy config, master README

This commit is contained in:
root
2026-07-15 17:45:36 -04:00
commit ae056eaf83
197 changed files with 26127 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# Called by the NEW session after /reset to notify Germaine and Anita
set -euo pipefail
FLAG_FILE="/root/.hermes/.just_reset"
if [ ! -f "$FLAG_FILE" ]; then
# No reset happened, nothing to do
exit 0
fi
# Read the timestamp
RESET_TIME=$(cat "$FLAG_FILE" 2>/dev/null || echo "unknown")
# 1. Notify Anita she's back
python3 << 'PYEOF'
import requests
token = "8797435889:AAER9zMnRHtAkTfVcifLdoPMu1XDPr6XkBk"
chat_id = "8200236464"
msg = "✅ *Sho'Nuff is back online.*\n\nReady to go."
url = f"https://api.telegram.org/bot{token}/sendMessage"
data = {"chat_id": chat_id, "text": msg, "parse_mode": "Markdown"}
r = requests.post(url, data=data, timeout=10)
print(f"ANITA_STATUS={r.status_code}")
PYEOF
# Remove the flag so it doesn't fire again
rm -f "$FLAG_FILE"
echo "BACK_ONLINE_NOTIFICATION_SENT"