GPG high CPU usage

Today I had a very high CPU usage while using GPG.

I found the answer inside the following ticket

The high CPU usage was caused by a process like this

/usr/bin/gpg –charset utf-8 –display-charset utf-8 –no-auto-check-trustdb –batch –no-tty –status-fd 2 –with-fingerprint –fixed-list-mode –with-colons –list-secret-keys *****

The reason is a huge key in ~/.gnupg/pubring.gpg. Mine was 37MB!!!

Thanks to “dkg” who publish the following awk script:

< ${GNUPGHOME:-~/.gnupg}/pubring.gpg gpg –list-packets | awk -F= -v oldoff=-1 -v keyid=unset ‘
/^# off=/{ off = $2 + 0 }
/^:public key/{
if (oldoff>-1) { print (off – oldoff) ” ” keyid };
oldoff = off; keyid = “unset”;
/keyid:/ {if (keyid == “unset”) { keyid = $1; } }
END { print (off – oldoff) ” ” keyid ; };’ | sort -n

There I get

36117 keyid: 6986401191B2164B
37146 keyid: 6BC26A17B9B7018A
51387 keyid: 702353E0F7E48EDB
53777 keyid: 3804BB82D39DC0E3
84346 keyid: 38DBBDC86092693E
94924 keyid: 79BE3E4300411886
902529 keyid: 2F3898CEDEE958CF
16676203 keyid: DB1187B9DD5F693B
20237699 keyid: 4E2C6E8793298290

The last lines are the problematic ones, there you can see that the keys are very huge. It’s time to wipe them out of the keyring

gpg –delete-key DB1187B9DD5F693B​

After deleting the two broken keys the filesize are reduced to 590K and GPG works like a charm.

Can’t enable FileVault (Full-disk-encryption) with APFS

I got a MacBook Pro which has been updated to macOS Mojava (10.14) and stuck in enabling FileVault with following errors:

Authentication server failed to complete the requested operation
Authentication server refused operation because the current credentials are not authorized for the requested operation.

Solutions which are not working for my situation:

  1. Check and remove CryptoUser from APFS with diskutil
  2. Reset and change the UUID of the admin user
  3. Convert to HFS with Paragon APFS to HFS converter
  4. Many other solutions found on the Internet


  1. Connect a USB drive and make a backup with Time Machine
  2. Poweroff and disconnect the USB drive
  3. Boot into recovery mode (CMD+R)
  4. Format your internal Disk to HFS. Your disk will be converted to APFS after restoring from Time Machine
  5. Connect the USB drive and restore with Time Machine
  6. Reboot

Now you have a clean APFS table with all your previous data. After this you can enable FileValut again

Connect Barcode Scanner Datalogic QuickScan QBT2101 with Windows 10 and add Tab as Suffix

Below you find the steps to connect a Datalogic QuickScan QBT2101 Barcode Scanner and Windows 10 with Bluetooth and add Tab-Key as Suffix after the scanned code.

What is a Suffix?


You can find the used Barcodes from the references, for easy reproduction I have copied them into this article.

  1. Scan variable barcode
  2. Scan Link code
  3. Search and connect from Windows. Windows should ask for an authentication code. Select “0000” and hit return
  4. Now the green light on the Scanner should light up
  5. Send the code below four times
  6. Commit the scanned code with
  7. Now you can use the Scanner, after every scan it should send a Return by default.

You can scan the following code to configure the scanner to add an Tab-Key after every code instead of Return

In detail: This code sets the scanner to programming mode, send the given Suffix and exit from the programming mode.

Stellengesuch Marathon

Letzte Änderung: 9.5.2019, 10:22
9 Standorte

Zum Stellengesuch

Stellengesuch Marathon 2019

loading map – please wait…

TU Wien – Freihaus: 48.199432, 16.366434
TU Wien – Resselpark: 48.198896, 16.369865
Baden HQ: 48.004568, 16.218731
Art-X – Vösendorf: 48.113674, 16.319041
Berndorf – Billa: 47.945108, 16.106420
Berndorf – Sparkasse: 47.945249, 16.106554
Raika – Matzendorf: 47.891914, 16.214569
Neunkirchen – Spar: 47.727546, 16.076804
Sparkasse – Bad Vöslau: 47.965342, 16.213442

Nautilus stopped mounting USB disk

Weeks ago Nautilus stopped mounting USB devices/disks when they are plugged in.

Here you find the solutions 🙂


  • Arch Linux (8.2.2019)
  • Gnome (3.30.2)
  • Nautilus (3.30.5)


  1. Open dconf and navigate to “”
  2. Set ‘x-content/unix-software’ for “autorun-x-content-start-app” or set as default value

Build APC RBC7 with two FIAMM FG 21803 Batteries

Today I had to build an APC RBC7 for an APC SMART-UPS 1400 out of two FIAMM FG 21803.

  1. Open the UPS and remove the battery
  2. Remove the first cover to reveal the connectors. You can use a hair dryer to warm up the double sided tape.
  3. Remove the fuse
  4. Mount the fuse on the new battery
  5. Add some double side tape on the cover and place it on the new battery
  6. Remove the plug connectors and add it to the new battery
  7. Add the cover with double side tape
  8. Put the new battery into the UPS, charge it and run the tests
Scroll to Top