Skip to content

Instantly share code, notes, and snippets.

View bwbaugh's full-sized avatar

Wesley Baugh bwbaugh

View GitHub Profile
class InterruptableRegion(object):
def __init__(self, signum_list=None):
if signum_list is None:
signum_list = [signal.SIGINT]
self.signum_list = signum_list
self.reset()
def __enter__(self):
self.reset()
@bwbaugh
bwbaugh / nginx.conf
Last active August 29, 2015 14:16 — forked from oroce/nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;