Skip to content

Instantly share code, notes, and snippets.

View rhenryw's full-sized avatar
😐
learning Java

RHW rhenryw

😐
learning Java
View GitHub Profile
@rhenryw
rhenryw / smartserve.md
Created January 19, 2026 03:17
Serve static files dynamically with Python3

python3 -m http.server is stupid so just pip3 install livereload and then run this:

# smartserve.py
from livereload import Server
from http.server import SimpleHTTPRequestHandler
import os

class NoCacheRequestHandler(SimpleHTTPRequestHandler):
 def end_headers(self):