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
entry_points={ | |
'console_scripts': [ | |
'whachuptu = whachuptu.__main__:run', | |
], | |
} | |
""" | |
(whachuptu)sspencer@bigboote:~/Projects/whachuptu$ python -m whachuptu asdf | |
['/home/sspencer/Projects/whachuptu/whachuptu/__main__.py', 'asdf'] | |
yay! |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.ourdomain.importantjabbers</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/bin/importantmessagefwd.sh</string> |
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
> db.words.ensureIndex({category:1, word:1, date:1, _id:1}) | |
> db.words.ensureIndex({category:-11, word:1, date:1, _id:1}) | |
> db.words.find({'_id': {$ne: ObjectId("5099783e5eb973379dfefbc9")}}).min({"category" : "j", "word" : "i", "date" : ISODate("1977-08-11T00:04:42Z"), "_id" : ObjectId("5099783d5eb973379dfeb5fa")}).sort({ "category" : -1, "word" : 1, "date" : 1, "_id" : 1 }).hint("category_-1_word_1_date_1__id_1").limit(10) |
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
> db.words.ensureIndex({category:1, word:1, date:1, _id:1}) | |
> db.words.ensureIndex({category:-11, word:1, date:1, _id:1}) | |
> db.words.find({'_id': {$ne: ObjectId("5099783e5eb973379dfefbc9")}}).min({"category" : "j", "word" : "i", "date" : ISODate("1977-08-11T00:04:42Z"), "_id" : ObjectId("5099783d5eb973379dfeb5fa")}).sort({ "category" : -1, "word" : 1, "date" : 1, "_id" : 1 }).hint("category_-1_word_1_date_1__id_1").limit(10) |
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
acpi | |
acpi-support-base | |
alsa-tools | |
btrfs-tools | |
chromium | |
console-setup | |
debfoster | |
discover | |
distcc | |
flashplugin-nonfree |
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
def serve_forever(listen_uri, mongodb_uri): | |
import urlparse | |
from pymongo import uri_parser | |
application = tornado.web.Application([ | |
(r'/', MainHandler) | |
]) | |
listen = urlparse.urlparse(listen_uri) |
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
def serve_forever(listen_uri, mongodb_uri): | |
import urlparse | |
from pymongo import uri_parser | |
application = tornado.web.Application([ | |
(r'/', MainHandler) | |
]) | |
listen = urlparse.urlparse(listen_uri) |
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
30000 stream tcp nowait sspencer /home/sspencer/testworker.py test 2> /tmp/wtf |
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
from bottle import get, run, request, response | |
import urllib2 | |
import json | |
last = None | |
initial_kml = '''<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.1"> | |
<Folder> | |
<open>0</open> |
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
<s:element name="CreateEntity"> | |
<s:complexType> | |
<s:sequence> | |
<s:element minOccurs="0" maxOccurs="1" name="strUsername" type="s:string"/> | |
<s:element minOccurs="0" maxOccurs="1" name="strPassword" type="s:string"/> | |
<s:element minOccurs="0" maxOccurs="1" name="strCompanyName" type="s:string"/> | |
<s:element minOccurs="1" maxOccurs="1" name="objecttype" type="s:int"/> | |
<s:element minOccurs="0" maxOccurs="1" name="keys" type="tns:ArrayOfAnyType"/> | |
<s:element minOccurs="0" maxOccurs="1" name="values" type="tns:ArrayOfAnyType"/> | |
</s:sequence> |