#Mac OS X
This file contains 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 base64, copy, sys | |
import requests | |
import json | |
from urlparse import urlparse | |
sip_domain = "company.com" | |
username = "[email protected]" | |
password = "somepassword" | |
def extractAuthURL(str): |
This file contains 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/python | |
"""Command line rtm interface | |
requirements: sudo pip install simplejson texttable | |
""" | |
import os, sys, urllib, urllib2, json, ConfigParser, datetime | |
from hashlib import md5 | |
from texttable import Texttable | |
FILE_PATH = "~/.rtm" | |
SECTION = "rtm_data" |
This file contains 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
Show hidden characters
{ | |
"folder_exclude_patterns": | |
[ | |
"node_modules", | |
".cache" | |
], | |
"font-face": "Helvetica-Neue", | |
"font_size": 14, | |
"ignored_packages": | |
[ |
This file contains 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/python | |
"""A simple command line todo for simplenoteapp synced via dropbox.""" | |
import os, sys, datetime | |
class TaskList(object): | |
def __init__(self, todo, done): | |
self.todo = todo | |
self.done = done |
This file contains 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 simplejson | |
from boto.s3.connection import S3Connection | |
from boto.s3.key import Key | |
from boto.exception import S3ResponseError | |
AWS_ACCESS_KEY_ID = "xxx" | |
AWS_SECRET_ACCESS_KEY = "xxxxx" | |
class BlobStore(object): | |
def __init__(self, bucket_name): | |
s3_conn = S3Connection(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) |
This file contains 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
# stolen from tarek ziade's bug report | |
# https://bug667846.bugzilla.mozilla.org/attachment.cgi?id=542440 | |
import pymysql | |
import time | |
import threading | |
from wsgiref.simple_server import make_server | |
# set up the greenlet | |
#from gevent import monkey | |
#monkey.patch_socket() |
This file contains 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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
This file contains 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
user www-data www-data; | |
worker_processes 2; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { |
This file contains 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
# Written by Alisdair Sullivan | |
STATE_OR_PROVINCE_CHOICES = [ | |
('AB', 'Alberta'), | |
('BC', 'British Columbia'), | |
('MB', 'Manitoba'), | |
('NB', 'New Brunswick'), | |
('NL', 'Newfoundland'), | |
('NS', 'Nova Scotia'), | |
('NT', 'Northwest Territories'), |
NewerOlder