My shell config

Posted on 2025-09-14 in Programmation • Tagged with Linux, Shell, Bash, Zsh

I discovered a lot of tools this year, most of them I now rely on daily. So I thought it would be a nice time to share them with various custom configs I wrote.

TL;DR: install zoxide, direnv, starship and atuin and have this in your .zshrc (or .bashrc …


Continue reading

Sending all nginx logs to journald

Posted on 2025-04-13 in Trucs et astuces • Tagged with systemctl, Linux

As part of my work to uniformize my server setup around systemd, I decided to make nginx log everything with journald. By default, it logs accesses and errors in log files under /var/log/nginx. I already had one log file per vhost.

To do the change, I changed my …


Continue reading

Using podman for containers

Posted on 2025-02-09 in Programmation • Tagged with Docker, podman, containers, systemctl, Linux

Podman is an alternative to Docker and Docker compose. It uses the same CLI interface than Docker and uses the same standardized image format. So you can use an image built with Docker with it or build an image and then use it with Docker. Its podman-compose command is compatible …


Continue reading

Systemd Timers

Posted on 2025-02-01 in Programmation • Tagged with systemctl, Linux

After using anacron for years to run a backup script regularly, I decided to have a look at systemd timers. Overall, anacron worked fine: I could run tasks as my user and it would start tasks if they missed a run. But, I was still frustrated with how it worked …


Continue reading

Execute Python scripts over SSH without copying them

Posted on 2025-01-05 in Trucs et astuces • Tagged with SSH, Linux

You can run scripts (written in Python or any other language) directly on a server if the proper interpreter is installed. I recently used it to run a Python script over several servers without the need to copy the relevant script on the server. It all relies on the following …


Continue reading

From ZSH to Fish

Posted on 2021-11-07 in Blog • Tagged with Shell, Bash, ZSH, Linux

After several years of ZSH with oh-my-zsh, I decided to give fish (Friendly Interactive Shell). I heard and read several good things about it. I also wanted to test starship (a cross shell prompt) easily without messing with my ZSH configuration.

The least I can say is: I'm impressed. Most …


Continue reading

Feedback after switching to openSUSE Tumbleweed

Posted on 2020-05-15 in Blog • Tagged with Linux

This article is a follow up to Installing openSUSE next to Fedora with BTRFS where I detailed how I switched to openSUSE Tumbleweed. In this article, now that I have been using Tumbleweed for about 2 months and a half, I'll give some feedback on my experience.

The issues I …


Continue reading

Installing openSUSE next to Fedora with BTRFS

Posted on 2020-02-23 in Blog • Tagged with Linux, BTRFS

Update: My feedback article is now available.

I wanted to install openSUSE Tumbleweed (the rolling release version of openSUSE) on one of my computers to see how it looked outside a VM (and thus to try to use it daily). I am thinking about switching to this distribution to avoid …


Continue reading

ZSH tips

Posted on 2018-10-09 in Trucs et astuces • Tagged with ZSH, Shell, Linux

ZBell

Useful to have a notification when a long command completes.

To enable it, add zbell to your plugins array if you are using oh-my-zsh or source the definition file.

To configure:

  • The minimum time commands must take for the notification to happen, use: ZBELL_DURATION. For instance ZBELL_DURATION …

Continue reading

Bash tricks

Posted on 2018-10-03 in Trucs et astuces • Tagged with Bash, Shell, Linux

Scripts

Use this at the top of all your Bash scripts to avoid problems:

# Exit on error.
set -e
# Don't allow undefined variable.
set -u
# Make pipeline fail if any command in it fail.
set -o pipefail