Category Archives: Too Good To

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 “When was the last time apt-get on that Debian/Ubuntu machine installed package upgrades?” Reliably answering this is a lot … Continue reading

Posted in Too Good To, UNIX & Linux | Tagged , , , , , , | Leave a comment

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 , , , , | Leave a comment