Articles


Creating a simple command line to post snippets on Gitlab

I'm trying to get away from Github, and one thing that I find useful is the gist utility they're providing. Seems that gitlab provides a similar tool. You can use it using python-gitlab: pipx install python-gitlab And then : gitlab snippet create --title="youpi" --file-name="snip.py" --content snip.py --visibility …

Creating an online space to share markdown files

I wanted to create a space on my server where I can upload markdown files and have them rendered directly, for them to be shared with other people. I stumbled on the markdown module for nginx which does exactly what I want, but seemed to ask for compilation of nginx …

Conversion d'un fichier svg en favicon.ico

Il y a plusieurs sites qui permettent de faire ça automatiquement, mais j'aime bien faire les choses depuis mon terminal, voici donc une commande qui permet de faire ça simplement, en utilisant ImageMagick. Merci à ce gist convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon …


Running the Gitlab CI locally

Sometimes, I need to change how the continuous integration is setup, and I find myself pushing to a branch to test if my changes are working. Oftentimes, it takes me multiple commits to find the correct configuration, which is… suboptimal. I discovered today Gitlab CI local which makes it possible …

ArchLinux et mise à jour du keyring

Pour les mises à jour Arch, j'utilise yay. Je ne fais les mises à jour que de manière semi-régulière, et parfois après une longue période je me retrouve avec des soucis de clé qui ne sont plus à jour ou manquantes. Avec une utilisation fréquente du système, aucun problème ne …


Profiling and speeding up Django and Pytest

Éloi made a pull request on IHateMoney to speedup the tests, with some great tooling for pytest that I wasn't aware of: pytest-xdist allows to run tests in parallel, using -n auto pytest-profiling makes it easy to get the call stack and time the function calls that take most of …