The trick to get your wordpress behind a reverse proxy

I have been meaning to get this blog SSL protected for a while and since solution like letsencrypt makes it easy I have generated some SSL keys for my domain and configured it in apache. So far so good, but the thing is my VM at my hosting provider is pretty small and I have been using varnish for quite some time or I would get out of memory quickly some the kernel OOM killer kicking1 it....

September 22, 2016

The best ways to work with yaml files in Emacs

Sometime ago or at least when I started doing programming in the late 90s XML was all the rage, it promised to be the panacea for everything from data to storage to data presentation and processing. People realized that it was just complexity as Joel Spolski points out an attempt to make the complex seem accessible to ordinary people.. Really people were annoyed to write all those tags as those ‘<’ and ‘>’ are hard to reach on a qwerty keyboard....

September 7, 2016

On trying to be pylint compatible

How I feel when I try to address all pylint warning/errors: Adapted from

April 11, 2013

emacs anything with magit

I have been using quite a bit the anything-mode for Emacs, it’s basically a Quicksilver/Alfred or Gnome-do for Emacs and allow to configure a lot of different sources to complete some chosen ‘source’with different actions. With my work on OpenStack I have found myself jumping a lot between git directories and due configured the variable ‘magit-repo-dirs for easy access to most of them easily. Plugging those two just seemed natural I had already this in my emacs to quickly open those magit repository directories :...

February 10, 2013

Rackspace CloudDNS python binding

I have released a python binding to Rackspace CloudDNShere which allow you to create/update/delete domains and records. It’s available on github binding is pretty simple and have unfortunately no documentation (or even tests) but you can figure out most of it from here : will be very welcoming pull request that add a bit of documentation.

July 17, 2011

Installing python-cloudfiles from pypi

I have just uploaded python-cloudfiles to pypi available here This make things easy to add as a dependence of your project like you can have something like this in your : requirements = ['python-cloudfiles'] and it will automatically download it as part of the dependence with easy_install or pip. cool kids on latest debian/ubuntu can do stuff like this (from python-stdeb package) : pypi-install python-cloudfiles which would automatically download the tarball from pypi and install it as a packages (like the way it should be for prod machine!...

February 16, 2011

Get latest lyrics of a scrobbled LastFM song

All my music players (Spotify, XBMC, Rythmbox etc…) are scrobbling over lastfm but not all of them display song lyrics properly so I came up with a quick Google AppEngine app that grab the latest or current song scrobbled over and display its lyrics. No fancy HTML or javascript just the lyrics displayed for your enjoyment. This is available here : for the scripter around you can just get (via curl or other) :...

October 9, 2010

Python decorator to argument checking

I am sure there is billions or more people who already done that but I needed this quickly for my project and was not feeling googling around :

July 29, 2010

connecting to self signed SSL certificate from Java on Debian/Ubuntu

You want to connect to self signed SSL certificate from Java using the standard HttpsURLConnection and you are getting this error, because the self signed certificate is obviously not recognized by Java : SEVERE: PKIX path building failed: unable to find valid certification path to requested target PKIX path building failed: unable to find valid certification path to requested target at at sun....

June 3, 2010

Using Jython with the vCloud API

Lately I had to do a lot of works with the VMware VCloudproduct and since the python API did not seem available and I did not have the courage to use the PHP API I had to do most of the API works with Java. I never did any Java before and while I have found Eclipse+Java development surprisingly pleasant and easy to use/learn my favourite are still Emacs+Python. I have then started to look over Jython to see if I can interact easily with Java via Python and this was actually pretty easy, it took me less than 10mn to convert a Login/Listing-VAPPS script in Jython....

May 17, 2010