I’ve been developing a Fish function called tween. It’s a simple, flexible utility for extracting ranges of lines from files or STDIN input, and it’s flexible enough to handle just about any scenario you can throw at it, from numeric ranges, array style position/length ranges, or even string matching with regex capabilities. You can find…
I’ve been putting in some time on side projects every morning while building up the motivation to work on more overwhelming things. Recently the focus was on Reiki, my tool for running Rake tasks with fuzzy matching and humane argument parsing. [paywall The details] ### Multi-Shell Support Automatic Shell Detection: Reiki now automatically detects your…
It’s been a while since I offered a shell trick, so here’s one I’ve found useful lately. It’s a way to quickly check what’s listening on a specific port. There are times when I run into a conflict running local services, saying the port is already in use, but I don’t know by what. So…
I do most of my automation and string manipulation scripting using Ruby. I know it’s not the most popular language these days, but it’s the one I know the best (thanks to my days of hacking on TextMate bundles) and it’s usually the fastest way for me to solve a problem. I have reams of…