Show more

Important #LibrePlanet 2021 news: 1) the Call for Sessions deadline has been extended to November 11th, and 2) the conference will be held in March 2021 entirely online, opening it to participation from the entire (libre)planet!

I primarily use GNU Emacs as my editor, but I've been using Vim for much longer (~15y). I find the keybindings of Vim to be superior for text editing (and so use evil-mode in Emacs), though I will mix Emacs keybindings in when they are more appropriate. I tend to use Vim for quick edits, or when I use heavy macros on large files.

But Emacs is so much more than a text editor, and I use it for many things. That will be the subject of a number of future posts.

The commands `kill` and `pkill` are useful for more than just killing processes---they can send many different signals (see `kill -l`).

For example, I have `pkill -STOP icecat` and `pkill -CONT icecat` as i3 keybindings to pause and resume IceCat (a Firefox derivative), since most of the time I'm just working out of a terminal and don't need wasted battery. (Despite allowing JS only on my self-hosted Mastodon instance, it still uses more CPU than I'd like it to.)

You can also copy images (and more) to the clipboard. For example, here's a command that'll let you take a screenshot using ImageMagick by selecting a screen area with your mouse:

$ import png:- | xclip -i -selection clipboard -t image/png

I used a password manager and more as examples of xsel/xclip in my LibrePlanet 2019 talk:

For interacting with the clipboard on GNU/Linux, I use xsel and xclip. The former is more concise, but the latter provides some useful features.

For example, `xsel` to read primary, `xsel -b` for what most users know as the clipboard, `-i` for writing. `xsel | xsel -ib` to copy from primary to clipboard.

`xclip -l 1 -quiet` to block until one paste. Useful to e.g. pipe a password from a password manager so that it gone after you paste it, or to chain pastes (user then pass).

There's been a LOT going on but nonetheless, 8 seconds before midnight, we technically did manage to get an episode of @fossandcrafts out this Thursday

It's about an ethical framework I've been workshopping for quite a while, one centered around increasing agency of everyone as an ethical good and and the inverse, subjection, as an ethical wrong (where a clear and strong case of subjection is slavery, and obviously there are many lesser forms from there).

For playing video, I use `mpv` (successor to mplayer). It also supports URLs, notably YouTube (if you have `youtube-dl` installed), allowing you to play videos without having to run non-free JavaScript.

If you prefer a GUI, VLC is a good media player which also supports playing YouTube videos.

The email came from, but I don't know if replies reach the Governor Cuomo. The official contact form is here:

NYSDOH can be reached at

The announcement contains an email address, but I can't read it, because it is obfuscated by CloudFlare and requires non-free JS to display:

If someone else observes it, please reply with it so I can send mail there as well.

New York State announced today a COVID-19 tracing app using Google and Apple's framework.

I responded with an email to the Governor and NYS Department of Health explaining that rather than asking for the trust of New Yorkers, they should release the source code for this taxpayer-funded software under a free/libre license; that way, we can all verify that the software is doing what it claims to do.

If you are a New Yorker, please consider doing the same.

Looking at archives of photos taken by my wife and kids, I'm always holding this mug that someone gave me many years ago that has "Go Away" in big bold letters, followed by "or I will replace you with a very small shell script". I don't look very approachable. And the other side is blank, so I often forget it says anything at all, including when we have visitors (pre-COVID-19), or when I'm outside.

Funny mug, but I don't actually think that. ...though a small shell script does go a long way.

@mikegerwitz And there's 'batch' for jobs which don't need to be run right now, but should be started when system load is low, and send mail with output on completion.

'batch' jobs will queue in submitted order and run when system load is below a defined value.

For tasks that need to happen at a certain date or time in the future, there's the `at` command. For example, I just received an email from myself reminding me that my GPG key is set to expire soon.

You can view your queue with `atq`, and remove them with `atrm`.

If you need to schedule tasks to happen more than once, see `crontab -e`.

I submitted a proposal for a session. I did not speak last year because of worries around COVID-19, and this year I'll almost certainly be attending remotely. The @fsf will be considering both remote and in-person proposals, should in-person be an option.

Consider submitting your own proposal! For more information, see:

How can you stop data thieves, data brokers, and police from snooping on your credit card payment history? Pay in cash. We support the federal Payment Choice Act, which would require retail stores to accept cash from in-person customers.

Want to render plain text in a more interesting (or obnoxious) way? `cowsay` and `figlet` offer good fun.

Bonus points if you can actually use them in a context that is productive and useful. You've almost certainly seen figlet's output before in a number of different contexts, such as motds and headings.

I work mostly from the command line, but sometimes I need to open an external GUI program to do something visual.

Since I don't often use those programs, I may forget what I installed to open a particular file.

The command `xdg-open` from xdg-utils will try to DTRT and invoke the right program for you. You can query and change preferred programs using `xdg-mime`. And this works without a desktop environment (e.g. I use i3wm).

My last post on free software I use mentioned a substitute for using search engines for word definitions.

Another common use of search engines is unit conversions (e.g. 3 miles to km). For that and more, I use GNU units (

I can't do any justice to this program with the number of characters I have left, so please, check it out; you won't be disappointed.

@mikegerwitz pro tip: curl also supports the dict protocol: curl dict://

Show more
Mike Gerwitz's Mastodon Instance

Mike Gerwitz's personal Mastodon instance