Skip to content

Instantly share code, notes, and snippets.

View waltfy's full-sized avatar

Walt Carvalho waltfy

View GitHub Profile
@waltfy
waltfy / upload.py
Created July 15, 2025 09:35
python-upload
from http.server import HTTPServer, BaseHTTPRequestHandler
import os
import cgi
UPLOAD_DIR = "uploads"
os.makedirs(UPLOAD_DIR, exist_ok=True)
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
#!/usr/bin/env bash
set -x
# make sure we install macOS command line tools
if ! xcode-select -p &> /dev/null
then
xcode-select --install
fi

Keybase proof

I hereby claim:

  • I am waltfy on github.
  • I am waltfy (https://keybase.io/waltfy) on keybase.
  • I have a public key ASC78ZXdKkzgqQ4C1tGtpMUpa81-b_bTmN_RsnOSvIECFQo

To claim this, I am signing this object: