TL;DR Fixing Windows Python 2.7 unicode issue with subprocess.Popen being unable to properly send command lines to the system. Here is the python code fixing unicode issue Details What Python 2.7 is plagued by bugs that won't be fixed. One …
Category Archives: comp
Fixing Windows Python 2.7 unicode issue with subprocess’s Popen.
trapping SIGINT, SIGQUIT in asynchronous tasks
Scattered in bash documentation lies the truth about SIGINT and SIGQUIT signals being mysteriously ignored and non-trappable in background processes. This has puzzled many, and will probably continue to do so. Traps Here's my try to unveil the terrible truth. …
docker update, or how to incrementally build images without Dockerfile.
This handy little script covers an important missing feature in current docker's tool set. I needed to build incrementally my images: From a given image, I want full script control (un-tamed shell scripts) and access to hosts files to do …
bash lore: how to properly parse NUL separated fields
As a lot of other part of bash, this is black magic. Lets suppose a friendly command that spits out NUL separated fields (as find -print0, shyaml get-values-0, ...). Which - may I insist - is the recommended way to …
bash lore: NUL character and variables
Bash variables are often thought as being able to store any binary content. Please bear in mind that it can't store NUL character, and only this one. Here you are: $ ascii_table() { echo -en "$(echo '\'0{0..3}{0..7}{0..7} | tr -d …
comparison of minimal packaging between distribute and distutils2
In a pythonic mind, we shoud keep things simple as possible. But when having to deal with distribution of your code, especially if it's ONE small python file, you'll might cringe when facing the boilerplate that is required. Even with …
Emacs and flymake for python, javascript, php, rst
Emacs is a wonderfull editor, every sane people know this. Here's how to extend your flymake to some trendy languages. You'll find here a general overview by answering question as What's flymake ? for emacs, and How does it work …
cleaned and released kal-shlib-* code and dd_rhelp
This is a long time since I wrote the first line of this shell script library which has followed me since then. These library were managed on subversion, so this was the opportunity to move them toward GIT. kal-shlib-core -- …
SpamAssassin, Amavis and ubuntu
If running spamassassin (SA) with amavis without usage of spamd on ubuntu 10.04 and you feel that sa-learn isn't working right, here are a few tips. I had mails that were false positive and I had to dig a little …
extracting a subpart of a git repository with history
I recently had to extract a subdirectory of an existing git repository towards its own new repository. And I wanted to keep all the commit information and history that was related to this directory. EDIT: Even if the solution I …