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.py:84 cursor.execute(('SELECT cache_key FROM %s WHERE cache_key = %%s and expires > %%s' % self._table), [key, connection.ops.value_to_db_datetime(now)]) | |
db.py:92 cursor.execute(('DELETE FROM %s WHERE expires < %%s' % self._table), [connection.ops.value_to_db_datetime(now)]) | |
db.py:94 cursor.execute(('SELECT COUNT(*) FROM %s' % self._table)) | |
db.py:97 cursor.execute(('SELECT cache_key FROM %s ORDER BY cache_key LIMIT 1 OFFSET %%s' % self._table), [(num / self._cull_frequency)]) |
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
File "/home/user/autoref/dynamic/autoref/lib/inventory_processors/autoref_site.py", line 55, in run | |
chord(tasks)(callback) | |
File "/home/user/autoref/virtual_env/lib/python2.6/site-packages/celery/task/chords.py", line 64, in __call__ | |
self.options, **options) | |
File "/home/user/autoref/virtual_env/lib/python2.6/site-packages/celery/app/task/__init__.py", line 445, in apply_async | |
return self.apply(args, kwargs, task_id=task_id, **options) | |
File "/home/user/autoref/virtual_env/lib/python2.6/site-packages/celery/app/task/__init__.py", line 601, in apply | |
request=request, propagate=throw) | |
File "/home/user/autoref/virtual_env/lib/python2.6/site-packages/celery/execute/trace.py", line 248, in eager_trace_task | |
uuid, args, kwargs, request) |
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 gevent.monkey | |
gevent.monkey.patch_all() | |
import time | |
import pymongo | |
connection = pymongo.Connection(use_greenlets=True) | |
def task(): | |
collection = connection.autoref.all_cars |
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
echo "" > moo.txt | |
scp moo.txt user@host:~/.cshrc | |
rm moo.txt |
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 time | |
import zmq | |
context = zmq.Context() | |
# Socket to talk to server | |
print "Connecting to hello world server." | |
socket = context.socket(zmq.PULL) | |
socket.bind ("tcp://192.168.0.63:5555") |
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
{"latitude": 40, "longitude": -80.7} |
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
wget http://pnc.com | |
--2014-03-12 19:16:22-- http://pnc.com/ | |
Resolving pnc.com (pnc.com)... 161.150.139.129 | |
Connecting to pnc.com (pnc.com)|161.150.139.129|:80... connected. | |
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. | |
Retrying. | |
--2014-03-12 19:16:23-- (try: 2) http://pnc.com/ | |
Connecting to pnc.com (pnc.com)|161.150.139.129|:80... connected. | |
HTTP request sent, awaiting response... 302 Found |
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
<div class="name">{{Name}}</div> | |
<hr> | |
<div class="map">{{Map}}</div> |
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
The following are my notes about the book The Antidote by Oliver Burkeman. It's an excellent book and I highly recommend it. | |
Some of the following may not make sense to others. Most are there for me to jog my memory, but you may find them interesting as well. | |
If you do, I encourage you to pick up the book. | |
http://www.amazon.com/Antidote-Happiness-People-Positive-Thinking/dp/0865478015/ | |
The Antidote | |
Oliver Burkeman |
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
The following are my notes about the book The Antidote by Oliver Burkeman. It's an excellent book and I highly recommend it. | |
Some of the following may not make sense to others. Most are there for me to jog my memory, but you may find them interesting as well. | |
If you do, I encourage you to pick up the book. | |
http://www.amazon.com/Antidote-Happiness-People-Positive-Thinking/dp/0865478015/ | |
The Antidote | |
Oliver Burkeman |
OlderNewer