Posts tagged til

TIL: Vim Last Opened Files

Vim can show a list of recently opened files:


Read more ...

TIL: Pycharm Open All Modified Files

Pycharm can open all modified files in new tabs.

Open the “Commit” tool window (Alt+0) and hit F4 on “Changes”:

Read more ...

TIL: Dockerfile Heredocs

I did not even know that Docker has support for heredocs until today.

Then I read the official blog post from 2021. In my defense: Using this depends on buildkit, which only became default in Docker Engine v23 released in 2023.

Read more ...

TIL: Postgres Replication Slots

Replica liest WAL-Segmente. Primary räumt WAL-Segmente auf:

the server might recycle old WAL segments before the standby has received them [1]

Read more ...

TIL: Monitoring Docker Memory with Limits on Prometheus

One of our CI jobs failed seemingly without any reason. When a Celery job established a new HTTP connection, then its container stopped working. Later on I noticed the following message from docker-compose:

The exit code 137 means that a process was out of memory (OOM). In this case, the celery container had a limit of 2GiB and docker killed it when it went over that. Here is how we define the memory limit in our docker-compose.yml:

Read more ...

TIL: Thunderbird Keyboard Shortcuts


Thunderbird > Addons: Search “tbkeys”

Read more ...

TIL: vim docker-compose.yml completion using vim-coc


Read more ...

TIL: Systemd Journald Cannot Clear the Logs of a Specific Unit

Some logs of my Docker containers got out of hand, so I tried Docker’s Journald logging driver. It did not take long for the log of the service to grow again, but no problem. Here’s the plan:

reconfigure service to be less verbose

Read more ...

TIL: Grafana Dashboard Link Time Range

If you want to link from one dashboard to another, simply use

For example:

Read more ...

TIL: Loki LogQL Pattern Matching for uWSGI Logs

Suppose you have log lines like this as uWSGI generates them:

First, let’s show the logs in a “Logs” view and filter them:

Read more ...

TIL: Prometheus file_sd_configs to Organize Static Scrape Configs

Changes to all defined files are detected via disk watches and applied immediately.

Read more ...

TIL: git restore by “meh”


Read more ...