Skip to content

Instantly share code, notes, and snippets.

View allthatjazzleo's full-sized avatar
🏠
Working from home

Leo Pang allthatjazzleo

🏠
Working from home
View GitHub Profile
@allthatjazzleo
allthatjazzleo / cosmovisor.py
Created February 4, 2021 09:44
cosmovisor.py
import os
import re
import signal
import subprocess
import sys
from pathlib import Path
reg = re.compile(r'UPGRADE "(.*)" NEEDED at (height: \d+|time: \S+): (\S*)')
@allthatjazzleo
allthatjazzleo / web-servers.md
Created September 4, 2018 03:11 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000