One of the most annoying “features” of Ubuntu is that it will wake from suspend on mouse move, even if waking up your system was the last thing you wanted; in fact, it will wake from suspend, a second after you put it to sleep, if your touch is less than feather-like in releasing the … More Ubuntu: Disable mouse wake from suspend
It is somewhat desirable to have a Bash script run forever; typical use case is for a long-running Docker container that backgrounds the service, and the startup script (e.g., invoked via the ENTRYPOINT command) needs to be kept alive (terminating the script would result in the process known-as “the container” to terminate too). I have … More Running a Bash script forever
Sometimes, you need to send both a visual and email alert for something that is checked using a background process (for example, running a `crontab` job): `notify-send` and `yagmail` provide a more user-friendly alternative on Ubuntu Linux desktop than scraping logs. … More Using `notify-send` and `yagmail` to send an alert if /boot partition is about to run out of space
overview Uses OpenSSL library to encrypt a file using a private/public key pair and a one-time secret. A full description of the process can be found here. configuration This uses a YAML file to describe the configuration; by default it assumes it is in /etc/filecrypt/conf.yml but its location can be specified using the -f flag. … More filecrypt – OpenSSL file encryption
A new (remastered) set of Ardis icons for Ubuntu desktop has recently been released, and they are a very pretty eye-candy (working really well with the Ambiance Crunchy theme – favor the green variant).
Private/Public keypair Create the private key (one-off): openssl genrsa -out ~/.ssh/key.pem 2048 chmod 400 ~/.ssh/key.pem then extract the public key from it: openssl rsa -in ~/.ssh/key.pem -out ~/.ssh/key.pub -outform PEM -pubout NOTE The whole mechanism revolves around keeping the secret key key.pem, well, secret. This is the only critical part of the scheme. Everything else, … More HOW-TO Encrypt an archive file
This is a very hand summary of daily useful tasks to be used on the command line The Art of the Command Line as the author notes, you can’t really call yourself a “true” developer, if you are not comfortable executing at least basic tasks in a shell. in fact, I would argue, I would … More The art of the command line