Posted in 2023
git bisect
- 2023-12-11
Given that HEAD
is a bad commit and v2.6.13-rc2
is good, start the bisect
process:
Next, choose either one of:
Neovim Spell Checking for Multiple Languages
- 2023-11-23
~/.config/nvim/init.vim
To enable spelling globally, run
Brooks’ Law
- 2023-11-20
There is an image in The Bluffer’s Guide to The Mythical Man-Month that fits my mental model of one aspect of Brooks’ Law perfectly.
By increasing the number of people you increase the number of communication channels exponentially.
Static Sites as Gitlab Review Apps with Caddy
- 2023-11-19
For our book’s page at Grundkurs agiles Software-Engineering we use Sphinx with myst-parser as a static site generator and Gitlab CI to build and deploy.
We use GitLab Review apps to
deploy the site on a subdomain, e.g.
some-branch.grundkurs-agiles-software-engineering.de
.
setfacl
- 2023-11-14
Allow writing to a directory for an unprivileged user using linux acl (setfacl).
Allow the user gitlab-runner
to write to /var/www/felixhummel.de/
.
Words Written This Year
- 2023-11-12
The year is coming to an end. I promised myself to write more, so now would be a good time to count things, that is: words. Let’s count words!
I tried a top-down approach a while ago, but it did not work out, because I got side-tracked with technicalities. Let’s try a bottom-up approach this time.
TIL: Postgres Replication Slots
- 2023-11-09
Replica liest WAL-Segmente. Primary räumt WAL-Segmente auf:
the server might recycle old WAL segments before the standby has received them [1]
TIL: Monitoring Docker Memory with Limits on Prometheus
- 2023-09-07
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
:
Rofi
- 2023-05-12
A window switcher, application launcher and dmenu replacement
I am still on Ubuntu 20.04, so I only get version 1.5.4
TIL: vim docker-compose.yml completion using vim-coc
- 2023-05-08
https://www.reddit.com/r/vim/comments/gs1f7j/any_dockercomposeyml_and_dockerfile_autocomplete/
TIL: Systemd Journald Cannot Clear the Logs of a Specific Unit
- 2023-05-03
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
Tuxedo Akku Aufgebläht
- 2023-04-26
Stolz habe ich von meinem Tuxedo InfinityBook S 14 - Gen6 berichtet, nachdem wir es vor knapp 1,5 Jahren am 20.09.2021 gekauft hatten.
Vorgestern ist mir dann aufgefallen, dass sich der Akku aufgebläht hat:
Letsencrypt Wildcard With Hetzner DNS
- 2023-04-21
https://community.hetzner.com/tutorials/letsencrypt-dns
Example domain: felixhummel.de
TIL: Grafana Dashboard Link Time Range
- 2023-04-20
If you want to link from one dashboard to another, simply use
For example:
Python Ellipsis
- 2023-03-08
You can use the ellipsis literal ...
to show the general structure of some code while keeping it valid Python, e.g.:
TIL: Loki LogQL Pattern Matching for uWSGI Logs
- 2023-03-07
Suppose you have log lines like this as uWSGI generates them:
First, let’s show the logs in a “Logs” view and filter them:
TIL: Prometheus file_sd_configs to Organize Static Scrape Configs
- 2023-02-16
https://stackoverflow.com/a/71267679/241240
Changes to all defined files are detected via disk watches and applied immediately.
TIL: git restore
- 2023-02-15
https://stackoverflow.com/questions/1463340/how-can-i-revert-multiple-git-commits by “meh”
Given