This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urwid, random, re, time | |
blank = urwid.Divider() | |
palette = [ | |
('body','light gray','black', 'standout'), | |
('reverse','light gray','black'), | |
('header','white','dark red', 'bold'), | |
('important','dark red','black',('standout','underline')), | |
('editfc','white', 'dark blue', 'bold'), | |
('editbx','light gray', 'dark blue'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, time, whisper, shutil | |
from optparse import OptionParser | |
now = int( time.time() ) | |
option_parser = OptionParser( | |
usage='''%prog path from''') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This is the "site config" for nginx | |
upstream django { | |
# Distribute requests to servers based on client IP. This keeps load | |
# balancing fair but consistent per-client. In this instance we're | |
# only using one uWGSI worker anyway. | |
ip_hash; | |
server unix:/tmp/uwsgi.sock; | |
} | |
server { |