Skip to content

Instantly share code, notes, and snippets.

View stefanor's full-sized avatar

Stefano Rivera stefanor

View GitHub Profile
@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
@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
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 ||
#!/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
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
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
Detected build compat level 3
╔═════════════════════════════════════════════════════════════════════════════╗
║ asyncserver 0.17 ║
╚═════════════════════════════════════════════════════════════════════════════╝
┌─────────────────────────────────────────────────────────────────────────────┐
│ Build deploy virtualenv │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ Build app virtualenv │
└─────────────────────────────────────────────────────────────────────────────┘
============================================================================= FAILURES ==============================================================================
__________________________________________________________________________ test_longdouble __________________________________________________________________________
def test_longdouble():
ffi = FFI()
ffi.cdef("long double sinl(long double x);")
lib = ffi.verify('#include <math.h>')
for input in [1.23,
ffi.cast("double", 1.23),
ffi.cast("long double", 1.23)]:
5.4T total
645G /srv/ftp/pub/linux/ubuntu
499G /srv/ftp/pub/linux/scientific
332G /srv/ftp/pub/bsds/openbsd
329G /srv/ftp/pub/linux/ubuntu-unofficial-packages-dvd
318G /srv/ftp/pub/linux/fedora
270G /srv/ftp/pub/bsds/freebsd
240G /srv/ftp/pub/linux/debian
196G /srv/ftp/pub/FreeBSD/ports
190G /srv/ftp/pub/linux/debian-isos
@stefanor
stefanor / worker.py
Last active December 19, 2015 07:49
#!/usr/bin/env python
import os
import threading
import time
class Job(object):
def __init__(self, name, dependants=None):
self.name = name