Skip to content

Instantly share code, notes, and snippets.

Ilkka Hakkari derega

Block or report user

Report or block derega

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am derega on github.
  • I am derega ( on keybase.
  • I have a public key whose fingerprint is 321F 4699 8863 8357 079A B7E0 3C7E 46D8 C856 3839

To claim this, I am signing this object:

from subprocess import PIPE, Popen
import time
import codecs
import re
CLASS_RE = re.compile(r'WM_CLASS\(STRING\) = "([^"]+)", "([^"]+)"')
TITLE_RE = re.compile(r'WM_NAME\([A-Z_]+\) = "([^"]+)"')
View gist:406010
# to initialize the mq patch queue. Done only once.
hg qinit
# converts the tip changeset to patch
# refreshes the patch with work area content
# converts the patch back to changeset
hg qimport -r tip && hg qrefresh && hg qfinish -a
derega /
Created Dec 6, 2009
Managing Django projects
from __future__ import with_statement
from fabric.api import *
def _read_config(conf_file=None):
import ConfigParser
CACHE_FILE = 'config.cache'
c = ConfigParser.ConfigParser()
if not conf_file:
You can’t perform that action at this time.