Category Archives: tip

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 …

Read more »

bash lore: command substitution and final new lines

Be wary that command substitution will remove all final new lines. Command substitution are $(command ..) construct or older `command ..` one that will be substitued by the standard output of the given command. But that's incorrect: a proper definition …

Read more »

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 …

Read more »

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 …

Read more »

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 …

Read more »

Forcing monospace font in HTML edit post in wordpress

I'm writing my blog post in ReST_ code, so naturally I want that the `HTML` edition tab of wordpress have a fixed-width font as ``monospace``.
Here's how to achieve this.

Read more »

Using ACL on linux system to mimic samba’s “force user”

How to enforce samba-like policy upon file or directory creation at the filesystem level thanks to linux ACL.

Read more »