Tag Archives: shell
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
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
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
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