Posts tagged til

TIL: SOA Refresh Value

[mxtoolbox.com warns] if DNS SOA TTL is lower than 20 minutes (1200 seconds) or higher than 12 hours (43200 seconds).

Read more ...


TIL: vim K

I was having fun with my Neovim config, but do not know the Lua API at all.

That’s why I was looking to find help for a word under my cursor. Thus, I googled “neovim open help under cursor”. Ingo Karkat delivered on Stackoverflow:

Read more ...


TIL: Pycharm: Remember Database Query Results

As the docs state:

By default, PyCharm updates the same tab with results each time you run a new query after the previous one. You can change this behavior and create a tab each time you run a new query.

Read more ...


TIL: KeepassXC never ask

The KeepassXC-Browser extension asks if a domain is allowed to access credentials. I want to skip this dialog, as I always save passwords with a concrete domain. Here’s how (via):

Tools > Settings > Browser Integration > Advanced tab

Read more ...


TIL: inxi system information

I was looking through the packages supplied by the Tuxedo apt repo:

That’s when I came across inxi.

Read more ...


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

wshanks/tbkeys

Thunderbird > Addons: Search “tbkeys”

Read more ...


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

https://www.reddit.com/r/vim/comments/gs1f7j/any_dockercomposeyml_and_dockerfile_autocomplete/

~~neoclide/coc-yaml~~

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

https://stackoverflow.com/a/71267679/241240

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

Read more ...


TIL: git restore

https://stackoverflow.com/questions/1463340/how-can-i-revert-multiple-git-commits by “meh”

Given

Read more ...