[Fri Jun 29 16:38:26 CDT 2018]

Two simple commands to cancel print jobs from the command line on Debian:

# lpstat -o

# cancel -a [printer]
{link to this entry}

[Tue Jun 26 14:19:24 CDT 2018]

I've been struggling a bit to get the Firefox browser configured to act as a Site-specific browser once Mozilla stopped supporting Mozilla Prism. Yes, I know Google Chrome does that easily, but I don't really like the fact that is released as freeware but with a proprietary license. The thing, though, is that configuring Firefox as a desktop app is relatively straightforward, as documented here. Yet, as it tends to happen, the devil is in the details for, once things are configured according to that page, I started running into weird behaviors here and there. For example, even though I was clearly specifying a given icon in my .desktop file, the GNOME Shell still appeared to choose them pretty much at random from all my configured web apps. Sure, you can (as a matter of fact, you should use the -no-remote option when you launch the browser. However, that still didn't do the trick. In the end, I found the answer (in a roundabout way) here. Simply make sure you separate each one of the web apps in a different profile, launch each instance with the -no-remote option, and also specify the --class value and make sure the .desktop file has its own StartupWMClass to match. All those together finally did the trick. In case it is of some help, here is the official desktop entry specification from GNOME. {link to this entry}

[Wed Jun 20 13:38:08 CDT 2018]

A very simple line to find the PID of a process and kill it (e.g., a connection via SSH to "myserver"):

$ pgrep -f myserver | xargs kill -9
{link to this entry}

[Thu Jun 7 08:06:57 CDT 2018]

I may have already written about this on these pages, but just in case... I needed to remove an individual entry from Firefox's autofill form history (a test URL I had entered while testing one of my scripts), and wasn't sure how to do it. This page from Firefox's own support site has the answer:

  1. Click on the form field and press the down arrow key to display all saved entries.
  2. Use the down arrow to highlight the entry you wish to delete.
  3. Press the Delete key to remove the entry.
{link to this entry}