Show more

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://

@mikegerwitz There's also a slew of supplementary dictionaries available, or you can simply create your own in the dict format

Several translation dictionaries, and on Debian, US Census locatin data also.

Dictd is networked, so you can query it from other local hosts, if you like.

The Call for Sessions for #LibrePlanet 2021: Empowering Users is now open! Have something to say about the role user freedom, free software, digital ethics, or technology plays in empowering users? Submit your session before Oct. 28th!

One of my favorite command line tools is `dict`---a dictionary and thesaurus. I use it multiple times a week. If you find yourself prefixing search queries with `define:`, this tool is for you.

If you install `dictd`, you also get the freedom and privacy of answering your own queries on a system you control, without the need for Internet access.

Show more
Mike Gerwitz's Mastodon Instance

Mike Gerwitz's personal Mastodon instance