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/env python | |
import multiprocessing | |
import sys | |
import Queue | |
import time | |
import traceback | |
class FooErr(Exception): |
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/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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 | |
import eventlet | |
eventlet.monkey_patch() | |
import httplib | |
import time | |
import uuid | |
import random | |
import hashlib | |
import sys |
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/env python | |
import sys | |
import httplib | |
host = sys.argv[1] | |
path = sys.argv[2] | |
auth_token = sys.argv[3] | |
conn = httplib.HTTPConnection(host) |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCcKz5d6C0rAfnQ48huGDKjDtkybu6a8zMzMuhjw4mV9zGb9ve2zJ83lIzhTDGKeOCxsHqWJyFpD3zVMWYU1xaTHU3/lF9pVC7LFpdeWZlEInVbg+kSSMCAp1tqN0g0O4GsZs1FDsuzChqieq/kLP1w/DTbJNYnYW6cg4rgy8WHPvUnAwyliiuqgeX77Ctl/wkE1FXvSlY1Snl+NoFv2TWvnHlf25C7CU6IHY2NK4K3nC/E1cq3mKOvhns40K0sZLJkUIxxMLpMQavWPeMF9a67vlr9aufpTjUQFIcQjnmWkCQTeP01jQ9W6ahylVAjS31q546NtQspaiT3mR1lDGGv john@triton.local |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwhOmG/MCs3r7qQs+rDWDOiOnk81zyGKQayfhRIrL2e+WKg5emGblBKMhAao992PK8DTImhKD/6RR4FAOYjjFhl5j/KOWPleExE1cjX+2GhUWRQSPBlwn2bHHjCD6BsmdJANxBIB70NV3r0rj7+rC5AX+EgKLO78rsgWMBYoKXBkSgssmJOZRGKrYzDqxMrP5q6hnaqD9J9aODX4JbrC4UAFwi0LcksGe6AU7kpDrgpuw4Bd/4f6PRGgUHSmo1SXtZwSzIIyMH6thhdWd/uxTfvktB/LzwaaJAGbW5L/oADeSOMHF/1xiqQX8qfoYA5wmnVFhUnTM265xr4Si7g3xf john@triton.local |
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
Last login: Tue Sep 11 19:42:36 2012 from 10.0.1.100 | |
OpenIndiana (powered by illumos) SunOS 5.11 oi_151a6 September 2012 | |
$ python | |
Python 2.6.4 (r264:75706, Apr 17 2011, 11:24:50) [C] on sunos5 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import ctypes, ctypes.util | |
>>> libc = ctypes.CDLL(ctypes.util.find_library('c'), use_errno=True) | |
>>> sys_fallocate = getattr(libc, 'fallocate') | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> |
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
Instead of: | |
line = 'Sep 16 20:00:02 ',srv,' testsrv ', \ | |
'199.115.119.21 - 16/Sep/2012/20/00/02 GET ',obj, \ | |
' HTTP/1.0 200 - StaticWeb - - 17005 - ',txn,' - 0.0095 -' | |
stream = ["".join(line)] | |
How about: | |
stream = 'Sep 16 20:00:02 srv testsrv 199.115.119.21 - ' \ |
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
$ ssh s.not.mn | |
Linux openslice 2.6.35.4-rscloud #8 SMP Mon Sep 20 15:54:33 UTC 2010 x86_64 GNU/Linux | |
Ubuntu 10.04.4 LTS | |
Welcome to Ubuntu! | |
* Documentation: https://help.ubuntu.com/ | |
Last login: Fri Sep 21 23:17:11 2012 from 75-101-56-125.dsl.static.sonic.net | |
john@openslice:~$ cd swift | |
john@openslice:~/swift$ nosetests test/unit/proxy/test_server.py:TestObjectController.test_leak_1 |
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
john@openslice:~/swift$ rm -r .tox | |
john@openslice:~/swift$ tox | |
____________________________________________________________________ [tox sdist] _____________________________________________________________________ | |
[TOX] ***creating sdist package | |
[TOX] /home/john/swift$ /usr/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log | |
[TOX] ***copying new sdistfile to '/home/john/.tox/distshare/swift-1.7.3.zip' | |
Traceback (most recent call last): | |
File "/usr/local/bin/tox", line 9, in <module> | |
load_entry_point('tox==1.3', 'console_scripts', 'tox')() | |
File "/usr/local/lib/python2.6/dist-packages/tox/_cmdline.py", line 19, in main |