Monthly Archives: May 2020

colout

colout is an interesting tool: like grep but different. The idea is to highlight lines (or parts of lines) that match a particular pattern. Sadly, it won’t build in my environment, and I don’t understand python well enough to figure … Continue reading

Posted in Technology | Tagged , , , , , | Leave a comment

Diff Tools, Redux

Some time ago, I mentioned here how I like to use colordiff. Well, on a Mac I actually prefer Apple’s FileMerge GUI diff tool, which is is part of the Xcode command line tools, and accessible from the command line … Continue reading

Posted in Technology | Tagged , , , , , , , | Leave a comment

File renaming tools

Long ago, I wrote a utility (brename) that renames a set of files based on a supplied pattern. (Imagine you had an arbitrary set of JPEGs and you wanted to pretend they all came from a digital camera with names … Continue reading

Posted in Technology | Tagged , , , , , , | Leave a comment

Visidata

I stumbled onto visidata. I’ve got tons of csv files and the ability to view them quickly at the command line is a huge win. But this thing is amazing. Csv files are the tiny tip of a huge iceberg. … Continue reading

Posted in Technology | Tagged , , , , | Leave a comment

pipx

I’m not a python person. But some interesting CLI utilities are written in python, including eyeD3 and visidata. Enter pipx – it creates little (huge?) pip sandboxes for your different utilities, so you don’t have to worry about one breaking … Continue reading

Posted in Technology | Tagged , | Leave a comment

Duff – duplicate file finder

I’ve got this folder called vast/todo/t.temp that’s got a 100 GB of stuff from old computers in it. Typically, I just copy stuff there and tell myself I’ll get back to it. There are 61,287 files, none less than a … Continue reading

Posted in Technology | Tagged , , , , , | Leave a comment

Extracting Text from Word DOCX files using Pandoc

Back in the day, I would use antiword to extract the text from a Word .DOC file. But it only understands DOC. Over the years, more and more Word files have been using the “open” (ha ha) DOCX format, which … Continue reading

Posted in Technology | Tagged , , , , , , | Leave a comment

Macports Cheatsheet

I used to use homebrew, but before that I used MacPorts. (And long, long, before that, fink.) The past year or two I’ve come back to MacPorts. But I forget what the commands are. (Honestly, I get them confused with … Continue reading

Posted in Technology | Tagged , , , , | Leave a comment

iTunes Misbehavior (Part 934)

I still use iTunes sync my iPhone periodically to my computer (mainly so I can retrieve photos off the phone). Every time I do, I get to watch this: It copies several hundred unchanged songs back onto my phone. This … Continue reading

Posted in Technology | Tagged , , , | Leave a comment

Useful gems, 2020 edition

Since the gem ecosystem keeps changing, and since I don’t write new programs very often, here’s a list of my favorite gems for developing command-line interface tools. Option parsing gem: slop. (Since micro-optparse looks moribund; see here.) But (looking at … Continue reading

Posted in Technology | Tagged , , , , , , , , , | Leave a comment