Welcome!
This is a place for errata broadly related to personal and professional interests.
Check out some specific pages like quotes and map of active tropical cyclones.
If it can be destroyed by the truth, it deserves to be destroyed by the truth. ⇨
“Always take sides. Neutrality helps the oppressor, never the victim. Silence encourages the tormentor never the tormented." ⇨
“I am so tired of waiting. Aren't you, for the world to become good and beautiful and kind? Let us take a knife and cut the world in two-- and see what worms are eating at the rind." ⇨
Recent Posts
27 Nov 2023
Manually customize bash terminal prompt look
The prompt text that bash interprets and uses is set with the PS1 environment variable and is usually specified in ~/.bashrc. I have been manually tweaking my bash prompt look and feel to make some of my work project use-case tasks easier. The combination of default style changes, and specific prompt elements added for active environment or sourced environments should make terminal-based project management a little easier.
A little searching allowed me to discover this website that allows you to interactively customize the prompt contents and style with common components. https://bash-prompt-generator.org/
17 Nov 2023
Automatically backup optical discs on linux
Here is a short starting-point for developing a bash script that can be used to automate optical disc ripping. At least for music and application CDs as well as DVDs. Some other cli commands will need to be added to deal with bluerays or other formats.
abcde to rip CD music #
abcde is used to rip music CDs to various formats (my configuration is set to FLAC to preserve the raw quality but in a compressed format to save space.) This command will fail for DVDs.
3 Nov 2023
Installation #
notify-send
# Command 'notify-send' not found, but can be installed with:
Installation with apt
#
# debian/ubuntu
sudo apt install libnotify-bin
Installation with dnf
#
# redhat/fedora
sudo dnf install libnotify
Usage #
notify-send "this is the summary"
notify-send "this is the summary" "this is the body of the notification"
Send to remote machine over SSH #
ssh user@host 'DISPLAY=:0 notify-send "TEST MESSAGE."'
Styling with HTML #
HTML tags are supported for styling the notification messages, even including images, although the result is not styled in the case of notifications in the rofication setup used by default in the i3wm-based regolith-desktop DE.