Kapil Thangavelu kapilt

View dockerd-contaiiner.log
1 2 3 4 5 6 7 8 9 10
https://github.com/dotcloud/docker/issues/2476
 
[debug] api.go:997 Calling POST /containers/create
2013/10/31 13:21:53 POST /v1.6/containers/create
[debug] api.go:997 Calling POST /containers/{name:.*}/attach
2013/10/31 13:21:53 POST /v1.6/containers/96fd519109e2/attach?stderr=1&stdin=1&stdout=1&stream=1
[debug] container.go:515 attach: stdin: begin
[debug] container.go:550 attach: stdout: begin
[debug] container.go:588 attach: stderr: begin
[debug] container.go:631 attach: waiting for job 1/3
View Dont Panic
1 2 3 4 5 6 7 8 9 10
Philip Henslowe: Mr. Fennyman, allow me to explain about the theatre business.
The natural condition is one of insurmountable obstacles on the road to imminent disaster.
 
Hugh Fennyman: So what do we do?
 
Philip Henslowe: Nothing. Strangely enough, it all turns out well.
 
Hugh Fennyman: How?
 
Philip Henslowe: I don't know. It's a mystery.
View gist:839355
1 2 3 4 5 6 7 8 9 10
127.0.0.1 - - [2011-02-22 15:37:20] "/POST /files/f2d9c52fcfe74895923d0d98f32ec5bf/result_upload HTTP/1.1" 200 122 0.009313
Traceback (most recent call last):
File "/home/kapil/projects/omit/lib/python2.6/site-packages/gevent-0.13.2-py2.6-linux-i686.egg/gevent/greenlet.py", line 405, in run
result = self._run(*self.args, **self.kwargs)
File "/home/kapil/projects/omit/lib/python2.6/site-packages/gevent-0.13.2-py2.6-linux-i686.egg/gevent/pywsgi.py", line 541, in handle
handler.handle()
File "/home/kapil/projects/omit/lib/python2.6/site-packages/gevent-0.13.2-py2.6-linux-i686.egg/gevent/pywsgi.py", line 164, in handle
result = self.handle_one_request()
File "/home/kapil/projects/omit/lib/python2.6/site-packages/gevent-0.13.2-py2.6-linux-i686.egg/gevent/pywsgi.py", line 270, in handle_one_request
raw_requestline = self.read_requestline()
View setup.py test_suite for a twisted project
1 2 3 4 5 6 7 8 9 10
def collector():
"""
Test collector and runner for setup.py test
"""
from twisted.scripts.trial import run
original_args = list(sys.argv)
sys.argv = ["", "txzookeeper"]
try:
return run()
finally:
View gist:383834
1 2 3 4 5 6 7 8 9 10
(dj)kapil@kapil-laptop:~/services/messaging/zookeeper_dashboard$ python manage.py runserver
Validating models...
/home/kapil/services/messaging/dj/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/utils/hashcompat.py:13: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5
Unhandled exception in thread started by <function inner_run at 0x96f5b54>
Traceback (most recent call last):
File "/home/kapil/services/messaging/dj/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/management/commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/home/kapil/services/messaging/dj/lib/python2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/management/base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
View fakecassandra.py
1 2 3 4 5 6 7 8 9 10
# In-memory Cassandra-ish thingy... useful for unit tests. Maybe useful for other
# stuff too? No support for SuperColumns, but that should be easy enough to add.
 
 
import bisect
import copy
from cassandra.ttypes import NotFoundException, Column, ColumnPath, ColumnOrSuperColumn
 
 
class SSTable(object):
View gist:364795
1 2 3 4 5 6 7 8 9 10
kapil@kapil-laptop:~/tools$ ls python/lib/python2.5/site-packages/pida/ui/
besttextview buttons.pyc gtkforms.pyc icons.pyc interfaces.pyc objectlist.py popupwindow.py splash.py uimanager.py widgets.py
books.py dropdownmenutoolbutton.py htmltextview.py __init__.py languages.py objectlist.pyc popupwindow.pyc splash.pyc uimanager.pyc widgets.pyc
books.pyc dropdownmenutoolbutton.pyc htmltextview.pyc __init__.pyc languages.pyc paneds.py prioritywindow.py terminal.py views.py window.py
buttons.py gtkforms.py icons.py interfaces.py moo_stub.so paneds.pyc prioritywindow.pyc terminal.pyc views.pyc window.pyc
kapil@kapil-laptop:~/tools$ . python/bin/activate
(python)kapil@kapil-laptop:~/tools$ python
Python 2.5.4 (r254:67916, Sep 20 2009, 10:05:43)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
View msgpack .. speed kills
1 2 3 4 5 6 7 8 9 10
from msgpack import packs, unpacks
from simplejson import dumps, loads
 
d = {'x':range(100), 'y':{'abc':'def'}, 'zero':None}
d['x'].append('a')
 
import time
 
def time_msgpack():
stime = time.time()
View gist:301054
1 2 3 4 5 6 7 8 9 10
[Wed Feb 10 19:50:09 2010][001687][EUCAINFO ] walrus_request(): saved image in /var/lib/eucalyptus/instances/admin/i-4C300941/disk-digest
[Wed Feb 10 19:50:09 2010][001687][EUCAFATAL ] error: insufficient disk capacity remaining (2043MB) in VM Type of instance i-4C300941 for component disk
[Wed Feb 10 19:50:09 2010][001687][EUCAERROR ] get_cached_file() failed (errno=0)
[Wed Feb 10 19:50:09 2010][001687][EUCAFATAL ] Failed to prepare images for instance i-4C300941 (error=1)
[Wed Feb 10 19:50:10 2010][001687][EUCAERROR ] libvirt: Domain not found: no domain with matching name 'i-4C300941' (code=42)
[Wed Feb 10 19:50:10 2010][001687][EUCAINFO ] vrun(): [rm -rf /var/lib/eucalyptus/instances/admin/i-4C300941/]
[Wed Feb 10 19:50:10 2010][001687][EUCAINFO ] stopping the network (vlan=10)
[Wed Feb 10 19:50:12 2010][001687][EUCADEBUG ] doDescribeResource() invoked
[Wed Feb 10 19:50:12 2010][001687][EUCADEBUG ] doDescribeInstances() invoked
[Wed Feb 10 19:50:17 2010][001687][EUCADEBUG ] doDescribeResource() invoked
View gist:259699
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
 
rm -rf a b
mkdir a
 
# do some work
cd a
bzr init
 
# make a branch
Something went wrong with that request. Please try again.