Skip to content

Instantly share code, notes, and snippets.

View jackhftang's full-sized avatar

Jack Tang jackhftang

View GitHub Profile
@jackhftang
jackhftang / SimpleHTTPServerWithUpload.py
Created December 27, 2016 01:19 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@jackhftang
jackhftang / dnsmasq-block-ads.sh
Last active June 26, 2016 02:59 — forked from frafra/dnsmasq-block-ads.sh
dnsmasq block ads
#!/bin/bash
FILE=/tmp/list
cat > $FILE <<-END
address=/2mdn.net/0.0.0.0
address=/360yield.com/0.0.0.0
address=/adgrx.com/0.0.0.0
address=/adnxs.com/0.0.0.0
address=/ads.yahoo.com/0.0.0.0