Skip to content

Instantly share code, notes, and snippets.

View leomikezee's full-sized avatar

Maizi Liao leomikezee

View GitHub Profile
@sydney0zq
sydney0zq / httpserver_qr.py
Last active December 13, 2017 14:36
simplehttpserver_with_qr_terminal
#!/usr/bin/env python3
import os
import html
import urllib
import sys
import http
import cgi
import socket
import socketserver
@danielrw7
danielrw7 / replify
Last active October 24, 2023 12:03
replify - Create a REPL for any command
#!/bin/sh
command="${*}"
printf "Initialized REPL for `%s`\n" "$command"
printf "%s> " "$command"
read -r input
while [ "$input" != "" ];
do
eval "$command $input"
printf "%s> " "$command"