stepping it back

This commit is contained in:
2026-07-09 20:00:35 -05:00
parent 2743338c36
commit 53cdebdc1e
17 changed files with 229 additions and 305 deletions
+6 -6
View File
@@ -1,14 +1,14 @@
# probably shouldnt mess with this!
# boot depends on it and if u break it u get no safe mode.
from pathlib import Path
import os
import base64
import urllib.request
Vpn_cache = Path("/tmp/vpn_country.cache")
Media_flag = Path("/tmp/media_active")
def get_base():
return os.environ.get("BASE_SWAY")
def rand12():
return base64.urlsafe_b64encode(os.urandom(9)).decode()[:12]
return base64.urlsafe_b64encode(os.urandom(9)).decode()[:12]
def http_get(url, timeout=2):
with urllib.request.urlopen(url, timeout=timeout) as r:
return r.read().decode().strip()