Author Archives: Thomas Cokelaer

fedora aeroplane mode always on

Tweet Under Fedora 23, somehow the aeroplane mode went on (plane icon shown in top right corner). I tried to switch it off but could not. After a reboot, the aeroplane is still switch on and there is no way … Continue reading

Posted in Linux | Tagged | Leave a comment

packet_write_wait: Connection to XXX : Broken pipe

Tweet In general, I can connect to a remote machine via SSH without any troubles but occasionally in some particular setup, although I can connect to the remote machine and type commands in a shell, the connection is broken after … Continue reading

Posted in Linux | Tagged | Leave a comment

pytest-cov collects no data on Travis

Tweet I recently switched from nosetests to pytest and pytest-cov for one of my Python project ( Locally, everything seemed to work fine and once on Travis, all tests passed as expected. Yet, before the coverage report, I noticed this … Continue reading

Posted in Python | Tagged , , | 2 Comments

Remove extension in a bash script

Tweet Imagine a bunch of files with extension fastq.dsrc, the following script will decompress the files by looping over the N files. One issue was to remove the extension in the script. See below the usage of //

Posted in Linux | Tagged | Leave a comment

git synchronisation of a forked repository

Tweet Let us assume you have forked a repository (from You now have a local version at a given time of the repository repository_name.

Time flyes and you come back to the local repository and you are not … Continue reading

Posted in Uncategorized | Leave a comment

gimp: how to make a transparent background

Tweet How to make a transparent background/selection on an image using GIMP 1. Open your image. 2. Select the area you want to make transparent. Select the appropriate selection tool from the Tool window or the Tools – Selection Tools … Continue reading

Posted in photos | Tagged | Leave a comment

lost your linux root password ?

Tweet Lost your root password ? ========================= Under Fedora, at boot time, press e, select the kernel and add 1 (run level), which will let you enter into a shell session, where you can edit the /etc/passwd file to reset … Continue reading

Posted in Linux | Tagged | Leave a comment

vim: multiple buffers

Tweet In order to work with several view ports of the same file in the same Vim window, type:

You may also open another file in the same window. To do so issue the command::

Posted in Linux | Tagged | Leave a comment

vim: create function to remove white spaces

Tweet In the .vimrc file, add the following lines ( here ^M is a special character for the return carriage created using CTRL+V):

those functions call then be called within vim typing:

some Explanation of the function removeWhiteSpace(). … Continue reading

Posted in Linux | Tagged | Leave a comment

yumex-dnf is locked

Tweet Under Fedora 23, starting yumex-dnf, I got a message that yumex-dnf was locked. I could not find any lock file in /var/cache/dnf and therefore was stuck. Finally, running

did kill the faulty process and could start yumex-dnf again…

Posted in Linux | Tagged | 5 Comments