Category Archives: Code

Emacs: replace tabs with spaces

When you want to replace tab with spaces or vice versa don’t use M-% (query-replace) but M-x tabify or M-x untabify. They work on the current selection so if you want it to be applied to a whole buffer, try … Continue reading

Posted in emacs | 2 Comments

Searching and replacing in emacs

Day two of my serie about emacs, about searching and replacing. Function name : isearch-forward Typical Key sequence : C-s How to get help : C-h f isearch-forward Usage : isearch-forward let you type a string to be searched incrementally … Continue reading

Posted in emacs | Leave a comment

Numeric arguments in emacs

I’m starting a ’emacs trick of the day’ sequence with : Function name : universal-argument Typical Key sequence : C-u How to get help : C-h f universal-argument Usage : C-u receive a numeric argument that is given to the … Continue reading

Posted in emacs | Leave a comment

nfsmount : rpc failed: 2

For those, here on the internet, asking themselves what is this f*cking `rpc failed: 2` while mounting an NFS, i’ts possible that teh response is here : Your NFS client, trying to mount the NFS share will use RPC to … Continue reading

Posted in Code, Sysadmin, unix | 7 Comments

Python: Introducing ppipe : Parallel Pipe

I’ll speak about my pipe python module so if you didn’t know it, you should first read the first aricle about pipes The idea behind ppipe (parallel pipe) is to transparently make a pipe async and or multithreaded. As multithreading … Continue reading

Posted in Python | 3 Comments