Optimize many PDFs at once

I had to work with many scanned PDF documents that were saved in a very un-optimal way, each one having up to tens of MBs. This was not suitable for sending via email and also unnecessary. I saw an option on my girlfriend's Mac to optimize PDF. The result was that her document dr…

Issues restoring Gitea from dump

Somehow, the official documentation for restoring Gitea from dump did not work for me. Roughly, the following command for the original rootful Docker image could look like this: /app/gitea/gitea dump --file gitea-dump.zip -c /data/gitea/conf/app.ini --skip-lfs-data --skip-reposit…

GnuPG PIN cache, Smartcards, YubiKeys and notifications

I am still obsessed with the OpenPGP smartcard. I know, it is definitely far inferior to YubiKey. It has far, far less features and it's GnuPG implementation is even riddled with serious bugs that can take days to work around. It definitely has it's peak years behind. But no matt…

Tips for a rootless Docker on Arch with Ansible

There are a few pitfalls worth noting when using Ansible when the remote is an Arch machine. I know, a weird combination. It looks more and more like basically no-one uses Arch remote with Ansible. But hey, I like it, so learning (and documenting) a thing or two along the way mig…

Rootless Docker on Arch

Currently, using a rootless Docker on Arch can reasonable be divided into two approaches: stability and performance. With the stability, the choice is a LTS kernel and a fuse-overlayfs storage driver, while under performance a latest stable kernel is used alongside the latest wid…

OpenPGP Smartcard KDF issue: Bad PIN

Both YubiKey and GnuPG are able to do many things. The difference one might point out is, that GnuPG probably does neither of them particularly well, resembling a Swiss army knife. No matter how well either of the tools handles tasks it is able to perform, both tools had became a…

Merge repos using git-filter-repo

I have already written how useful a tool git filter-repo is for cleaning repositories. I made some extensive use of the newfound knowledge since to undo some previous bad decisions in my private repositories. Here's a list of commands for merging project-a into project-b for a re…