Skip to content

Instantly share code, notes, and snippets.

View stefanor's full-sized avatar

Stefano Rivera stefanor

View GitHub Profile
pypy_1.9+hg57779+dfsg-0~ppa1~ubuntu12.04_amd64.deb
──────────────────────────────────────────────────
new debian package, version 2.0.
size 10355676 bytes: control archive=1679 bytes.
1227 bytes, 25 lines control
885 bytes, 12 lines md5sums
529 bytes, 33 lines * postinst #!/bin/sh
320 bytes, 27 lines * prerm #!/bin/sh
34 bytes, 1 lines triggers
This file has been truncated, but you can view the full file.
sbuild (Debian sbuild) 0.63.2 (18 Aug 2012) on dvorak.kardiogramm.lan
╔══════════════════════════════════════════════════════════════════════════════╗
║ pypy 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04 (amd64) 08 Oct 2012 11:02 ║
╚══════════════════════════════════════════════════════════════════════════════╝
Package: pypy
Version: 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04
Source Version: 1.9+hg57779+dfsg-0~ppa1~ubuntu12.04
Distribution: precise
#!/usr/bin/env python
def memoize(f):
def wrapped(self):
attr_name = '_memoized_%s' % f.func_name
if not hasattr(self, attr_name):
setattr(self, attr_name, f(self))
return getattr(self, attr_name)
return wrapped
X:1
T:Lettuce Turnip the Beet
M:4/4
L:1/4
K:C
V:1
cAB2 | bBe2 | AGE2 | F2Ez ||
V:2 octave=-1
z4 | e3z | G3z | G3z ||
@stefanor
stefanor / simple-job.conf
Last active May 24, 2016 22:05
Playing around with `kill timeout` in Upstart
description "A stubborn service, for debugging"
start on runlevel [2345]
stop on runlevel [!2345]
kill timeout 30
exec stubborn-test
@stefanor
stefanor / sh.vim
Created October 24, 2012 11:46
vim sh filetype
" Vim filetype plugin file
" Language: sh
" Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
" Last Changed: 20 Jan 2009
" URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
if exists("b:did_ftplugin") | finish | endif
let b:did_ftplugin = 1
" Make sure the continuation lines below do not cause problems in