Category: Software

Reformatting X12 in Vim

I’ve been working with a lot of ANSI X12 files lately. Often, they come to me formatted either as a single line, or as multiple lines with line breaks at 80 columns. They’re much...

Using fzf and oc to rsh into an OpenShift Pod

Getting a remote shell on an OpenShift pod is simple enough; you type: $ oc rsh <pod name> Pod names can be long and complex, however. Here’s an example: mysql-coolapp-5-rg59c Only a luddite would...

Restricting ripgrep to certain file types

I’ve been using ripgrep to search files for awhile, but I hadn’t figured out how to recursively search only certain file types. Anytime I needed to search, say, for any occurrence of “doFoo” in Go...