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
### Keybase proof | |
I hereby claim: | |
* I am nailor on github. | |
* I am nailor (https://keybase.io/nailor) on keybase. | |
* I have a public key whose fingerprint is 6862 A7F2 9708 2F26 C7F4 E8A4 A2E8 A2FF 1E37 A353 | |
To claim this, I am signing this object: |
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
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z last-window | |
bind-key z send-prefix | |
bind-key A command-prompt "rename-window %%" | |
set -g base-index 1 | |
set -g default-terminal "screen-256color" | |
set-option -g history-limit 10000 |
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
[~/tmp/ppathtest]$ mkdir bar | |
[~/tmp/ppathtest]$ mkdir foo/package | |
[~/tmp/ppathtest]$ mkdir bar/package | |
[~/tmp/ppathtest]$ echo '__import__("pkg_resources").declare_namespace(__name__)' > bar/package/__init__.py | |
[~/tmp/ppathtest]$ echo '__import__("pkg_resources").declare_namespace(__name__)' > foo/package/__init__.py | |
[~/tmp/ppathtest]$ touch foo/package/herp.py | |
[~/tmp/ppathtest]$ touch bar/package/herp.py |
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 socket | |
def sockrecv(sock): | |
d = '' | |
while not d or d[-1] != '\n': | |
d += sock.recv(8192) | |
return d | |
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 XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.EwmhDesktops | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Layout.ToggleLayouts as TL | |
import XMonad.Layout.PerWorkspace | |
import XMonad.Layout.NoBorders | |
import XMonad.Layout.ResizableTile | |
import XMonad.Util.Run(spawnPipe) |
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 | |
# This code is public domain and can be freely used. | |
# | |
# This script echoes all replies it has received that are either | |
# prefixed or suffixed with @username | |
# | |
# Requirements: | |
# Python 2.5+ | |
# python-twitter: http://code.google.com/p/python-twitter/ | |
# simplejson: http://www.undefined.org/python/ |
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
# Copyright (c) 2009 Inoi oy | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the | |
# Software is furnished to do so, subject to the following | |
# conditions: |
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
start on runlevel 2 | |
start on runlevel 3 | |
start on runlevel 4 | |
start on runlevel 5 | |
stop on shutdown | |
exec /usr/bin/sudo -u www-data \ | |
PHP_FCGI_CHILDREN=5 \ | |
PHP_FCGI_MAX_REQUESTS=125 \ | |
/usr/bin/php-cgi -q -b 127.0.0.1:9000 |
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 | |
from r12950.app1.models import A | |
print 'foobar' |
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 random | |
from datetime import datetime | |
import struct | |
import binascii | |
class SequentialID(object): | |
def __init__(self): | |
self.rng = random.Random() | |
self.reinit() |
OlderNewer