Analyze projects programming languages using github-linguist

Posted on Wed 29 March 2023 in code

github-linguist is a Ruby library and command line tool for detecting the programming languages used in a project. It is used by GitHub to detect the language of a project and to generate language statistics.

We can use it through the command line, in order to analyze the programming languages …

Continue reading

Astuce: Copier du texte dans le presse-papier depuis un terminal Linux

Posted on Sun 05 February 2023 in tip • Tagged with linux

Il suffit d'installer xclip:

sudo dnf install xclip # sur fedora par exemple

Puis, c'est tout simple:

echo "Coucou !" | xclip -selection c

Un exemple d'utilisation: copier une clé publique ssh dans le presse papier depuis le terminal:

cat ~/.ssh/ | xclip -selection c

Continue reading

Générer le code LaTeX/chemfig d'une réaction chimique avec Zyme

Posted on Sun 02 October 2022 in chemie • Tagged with chemie, python, latex

Durant les trois années de licence bioinformatique, nous avons des cours de biochimie, et ceux ci viennent avec leur lots de structure chimiques à connaître.

En L1, j'avais réalisé un document pdf avec LaTeX/chemfig des acides aminées protéinogènes en représentation de FISCHER, et j'avais trouvé ça plutôt sympa, bien …

Continue reading

Faire tourner Stable Diffusion sur Google Colab

Posted on Sat 01 October 2022 in art • Tagged with ia, machine learning, python, notebook


Stable Diffusion est un modèle de deep learning permettant de générer des images photoréalistes à partir d'un prompt texte

J'ai récemment découver ce modèle via, après avoir entendu parler des concurents DALL-E, Imagen et consorts.

Stable Diffusion a l'avantage d'être open source: tout le monde peut l'utiliser …

Continue reading

How to mount a shared folder between Linux KVM Host and Guests

Posted on Tue 21 June 2022 in linux • Tagged with qemu, kvm, linux

Sharing folder between KVM virtual machines and host, may be useful. Here is a way found in fedora forum.


Change vm to your vm hostname.

sudo mkdir -p /mnt/shared
sudo chmod -R a+rwX /mnt/shared
sudo semanage fcontext -a -t svirt_home_t "/mnt/shared(/.*)?"
sudo restorecon -R /mnt …

Continue reading

Install Gephi on Linux

Posted on Sun 19 June 2022 in linux • Tagged with graph, visualization, linux

Gephi is a software package for graph visualization. Let's install it on Linux.

Install Gephi

su - # Switch to root
cd /opt/
wget -o
tar -xzf gephi-0.9.5-linux-x64.tar.gz
rm gephi-0.9.5-linux-x64.tar …

Continue reading

How to use virtual environments

Posted on Sun 19 June 2022 in code • Tagged with python, R, julia

To not interfere with your os configuration and keep your project reproducible, you should use a virtual environment as long as possible.

Virtual environment are a way to isolate your project from the rest of the system, and to avoid dependencies conflicts.

Python Virtualenv

Lets start by installing the virtualenv …

Continue reading

How to make automatic documentation using Doxygen, breathe and Sphinx

Posted on Wed 15 June 2022 in documentation • Tagged with C++, Doxygen, Sphinx

Doing documentation is required, to allow people to use your project. Here I present a rather easy solution.

Continue reading

How to render LaTeX formula in Pelican

Posted on Tue 14 June 2022 in math • Tagged with math, latex, pelican

Rendering \(\LaTeX\) formulas in Pelican is easy.

Firstly import the pelican plugin in the proper python environment:

pip install pelican-render-math

Add render_math to PLUGINS list in your file:

PLUGINS = ['render_math']

Then type formula in your blog post markdown documents:

$$ \frac{1}{2} $$

And that's it …

Continue reading

Compute the inverse of a matrix

Posted on Tue 14 June 2022 in math • Tagged with math, python

I faced recently the issue of computing the inverse of a matrix, when I wrote the Algae library code. I finally found a solution, and here it is.

Continue reading