Skip to content

Instantly share code, notes, and snippets.


Stefan Praszalowicz stfp

View GitHub Profile
View gist:ec6f17d02101d90b0c0f
### Keybase proof
I hereby claim:
* I am stfp on github.
* I am stfp ( on keybase.
* I have a public key whose fingerprint is 99A9 D78D 7C95 D0B4 CDEC 9D9B B403 3B0F AD98 2B4A
To claim this, I am signing this object:
stfp /
Created May 19, 2011
Java class to kill the current process using JNA
/* Requires JNA
* Get jna.jar here:
import com.sun.jna.Library;
import com.sun.jna.Native;
public class SelfKiller
private interface CLibrary extends Library
stfp /
Created Jan 27, 2011
virtualenvwrapperwrapper is like lazy initialization for virtualenvwrapper
_veww () { source }
workon () { _veww; workon $@ }
mkvirtualenv () { _veww; mkvirtualenv $@ }
complete -o default -o nospace -F _veww workon
stfp /
Created Jan 8, 2011
installs an open nebula image from the repository to a new lvm volume in each host
import os, sys
import logging
import hashlib
from xmlrpclib import ServerProxy
import xml2obj