Skip to content

Instantly share code, notes, and snippets.

José Luis Lafuente jlesquembre

Block or report user

Report or block jlesquembre

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
View keybase.md

Keybase proof

I hereby claim:

  • I am jlesquembre on github.
  • I am jlesquembre (https://keybase.io/jlesquembre) on keybase.
  • I have a public key whose fingerprint is 861E 4236 005A CB35 220D 8147 09AF B79F 061A CD6C

To claim this, I am signing this object:

@jlesquembre
jlesquembre / pew.PKGBUILD
Last active Aug 29, 2015
archlinux PKGBUILD for pew
View pew.PKGBUILD
# $Id$
# Maintainer: José Luis Lafuente <jl@lafuente.me>
# Contributor: Arthur Vuillard <arthur@hashbang.fr>
pkgname='python-pew'
pkgver=0.1.14
pkgrel=1
pkgdesc="Python Env Wrapper, a set of tools to manage multiple virtual environments"
url="https://github.com/berdario/pew"
arch=('any')
@jlesquembre
jlesquembre / gist:9994132
Last active Aug 29, 2015
Descriptors pyug
View gist:9994132
{
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
"signature": "sha256:b392c503122c5ac4b5ed7cb8d3ce0d2ba9fce4f4d8596d0ed399df0e06bc778a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@jlesquembre
jlesquembre / server.py
Created Oct 20, 2012
Serve static files and modify headers
View server.py
from twisted.web.server import Site
from twisted.web.static import File
from twisted.internet import reactor
static_path = '/path/to/folder'
class ResponseFile(File):
def render(self, request):
@jlesquembre
jlesquembre / postmkvirtualenv
Created Mar 15, 2012
Creates a symlink to PyQt libraries when a new virtual environment is created
View postmkvirtualenv
#!/bin/bash
# This hook is run after a new virtualenv is activated.
# ~/.virtualenvs/postmkvirtualenv
libs=( PyQt4 sip.so )
python_version=python$(python -c "import sys; print (str(sys.version_info[0])+'.'+str(sys.version_info[1]))")
var=( $(which -a $python_version) )
get_python_lib_cmd="from distutils.sysconfig import get_python_lib; print (get_python_lib())"
@jlesquembre
jlesquembre / remoteadmin-build-debian.sh
Created Oct 19, 2011
Creates a Debian binary package for "Remote Admin"
View remoteadmin-build-debian.sh
#!/bin/sh
# Prepare folders for debian repository
FOLDER="debs/remoteadmin"
if [ -d "$FOLDER" ]; then
rm -rf $FOLDER
fi
mkdir -p $FOLDER
echo "remoteadmin optional misc" > $FOLDER/override
@jlesquembre
jlesquembre / remoteadmin-pre-debian.sh
Created Oct 19, 2011
Install the prerequisites to build "Remote Admin" in Debian
View remoteadmin-pre-debian.sh
#!/bin/sh
echo "deb http://download.opensuse.org/repositories/home:/pgquiles:/Wt/Debian_6.0/ ./" >> /etc/apt/sources.list
echo "deb http://backports.debian.org/debian-backports squeeze-backports main" >> /etc/apt/sources.list
aptitude update
aptitude install witty git
aptitude -t squeeze-backports install cmake
You can’t perform that action at this time.