Skip to content

Instantly share code, notes, and snippets.

'''
chunked_server_test.py
Copyright August 3, 2012
Released into the public domain
This implements a chunked server using Python threads and the built-in
BaseHTTPServer module. Enable gzip compression at your own peril - web
browsers seem to have issues, though wget, curl, Python's urllib2, my own
async_http library, and other command-line tools have no problems.
@flytwokites
flytwokites / proxy.pac
Last active February 19, 2020 10:26
proxy.pac
var PROXY = 'SOCKS5 127.0.0.1:10007';
var PROXY_HOSTS = [
/* google */
'google.com', 'googleusercontent.com', 'gstatic.com', 'ggpht.com', 'googleapis.com',
'googlecode.com', 'google.co.id', 'googleadservices.com',
/* other */
'godaddy.com', 'blogger.com', 'blogspot.jp', 'youtu.be', 'goo.gl', 'facebook.com',
'feedsportal.com', 'cloudfront.net', 'alexa.com', 's3.amazonaws.com', 'cl.ly', 'yfrog.com',
@flytwokites
flytwokites / autowallpaper.py
Last active December 10, 2015 21:08
Change Gnome wallpaper automatically.
#!/usr/bin/env python
import urllib
import bs4
import random
import re
import os
import sys
import base64
import json
from gi.repository import Gio