Code, etc.

Des bouts de trucs liés au code, que je trouve utiles de stocker quelque part (en anglais)

How to run the vigogne model locally

Vigogne is a LLM model based on LLAMA2, but trained with french data. As I’m working mostly in french, it might be useful. The current models that I can get locally are in english.

The information I’ve found online are scarse and not so easy to follow, so …


llm

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 …

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 …

Découverte de nouveaux outils pour le développement: LLM, Helix et plus

LLM


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 …


gitlab, docker

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 …


arch-linux

Python packaging with Hatch, pipx and Zsh environment variables

It’s been a while I didn’t packaged something new. I recently remembered an old package of mine that needed some attention : debts. It’s now time to package it, so I discovered hatch

hatch new —init

This does the heavy-lifting for you, actually porting the setup.py files …


python, packaging, zsh

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:


django, pytest