Skip to content
Mehdi Kababfrontend / author
⁠All posts

Linux & tools

Command line, Git, Bash, system administration and small everyday tools, from Mac OS X back then to Fedora today. Short recipes to copy and paste, including the notebook’s latest TILs (11 posts).

2026

3 posts

  1. Trust the mkcert CA in Flatpak Chromium

    Flatpak Chromium keeps its own NSS database, so mkcert CA trust set up on the host never reaches it. Import the CA there and local HTTPS stops failing.

  2. Apply Fedora updates offline with DNF

    dnf5 can stage a transaction while Fedora runs, then apply it at reboot. Kernel and systemd updates stop fighting running processes for files.

  3. Increase the size of the swap file

    Ubuntu swaps into a single file, so doubling it takes five minutes: no repartitioning, no reboot, and a swappiness tweak keeps the kernel from using it too eagerly.

2015

1 post

2010

3 posts

  1. Bash: convert a string to an integer

    Bash can’t convert a float to an integer, but printf handles it just fine: here is a small shell function that does the job.

  2. Git ignore pour un projet Flex Builder

    Un .gitignore prêt à l’emploi pour projet Flex Builder : dossiers de build, fichiers de l’IDE et .DS_Store restent hors du dépôt.

  3. Rotation des logs Apache

    Une seule ligne dans CustomLog suffit pour faire tourner vos logs Apache chaque semaine avec rotatelogs, sans cron ni script à maintenir.

2009

4 posts

  1. Git : des alias pour aller plus vite

    Quelques alias Git qui m’évitent de retaper les mêmes commandes à longueur de journée, prêts à coller dans votre .gitconfig.

  2. Git : 10 commandes utiles

    Dix commandes Git que je tape sans y penser : retoucher un commit, supprimer une branche ou un tag distant, antidater un commit, exporter une archive.

  3. Convertir une icône ICNS en une image PNG

    Pas besoin d’appli graphique : la commande sips de Mac OS X convertit une icône .icns en PNG aux dimensions voulues, en une seule ligne.