Category Archives: Too Good To

Too good to #0006

“Sudo on demand” from TGT0003 considered more useful for downgrading privileges on the fly JSON export of all installed packages on Debian/Ubuntu Urlwatch for a new version of a package in the Ubuntu package pool

Posted in Too Good To, UNIX & Linux | Tagged , , , , , | 1 Comment

Too good to #0005

Prioritizing own NTP servers for systemd-timesyncd Test if text is empty (even if it does contain a linebreak) Good job by: https://unix.stackexchange.com/q/386499/2028 Watch for changes in the Gnome registry (To reproduce manual changes, for configuration management.) Trigger Debian/Ubuntu unattended-upgrade (For … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , , | Comments Off on Too good to #0005

Too good to #0004

systemd, the good parts: monotonic timers When systemd makes you suffer because “run job every 10 minutes” is infinitely harder to specify than in crontab, remember there are monotonic timers in systemd that aren’t derived from wallclock time, or “Calendar … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , | 1 Comment

Too good to #0003

Linux uptime in seconds, once and for all “Sudo on demand”, re-exec shell script with sudo if not running as root See also TGT0006, this is just as useful for downgrading privileges on the fly. “When was the last time … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , | Comments Off on Too good to #0003

Too good to #0002

Show and update the comment in an SSH private key ssh-agent in Gitlab CI/CD Define SSH_KEY as a “file” in Gitlab CI/CD variables and SSH_PASSPHRASE as a regular variable If libcrypto errors on execution, make sure SSH_KEY has an additional … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , | 2 Comments

Too good to #0001

Set X11 keyboard layout manually and temporarily (e.g. in i3 if I need to test exotic window managers for my users) Speaking of which, set keyboard layout permanently in Gnome Check if Gnome Screensaver is active (I use this for … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , | Comments Off on Too good to #0001