Initialize

This commit is contained in:
2025-10-17 22:34:40 -05:00
commit 75d706eadd
605 changed files with 131346 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#! /usr/bin/python3
from http.server import HTTPServer, SimpleHTTPRequestHandler
import sys
import webbrowser
PORT = 8888
class CustomHTTPRequestHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header("cross-origin-embedder-policy", "require-corp")
self.send_header("cross-origin-opener-policy", "same-origin")
SimpleHTTPRequestHandler.end_headers(self)
with HTTPServer(("", PORT), CustomHTTPRequestHandler) as httpd:
try:
webbrowser.open("http://localhost:%s" % PORT)
print("serving at port", PORT)
httpd.serve_forever()
finally:
sys.exit(0)