Category: Code


  • I recently built a WordPress plugin specifically for my friend Allison Sheridan over at Podfeet Podcasts. She had a huge mind map she wanted to display on her blog — HTML embeds were messy and broke the site, PNG exports were unsearchable and impossible to navigate, and she didn’t want to just offer an OPML…

  • One more na update

    ,

    This week I pushed a set of focused improvements to NA that make interactive workflows a lot smoother and the codebase a little more robust — including first‑class time tracking. If you run na update without arguments you’ll now get an interactive menu that helps you pick the file(s) and actions to operate on, and…

  • Reiki refactored

    ,

    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…

  • Optimizing na and doing

    ,

    I’ve been using my na and doing command-line tools daily for years, but lately they’d started feeling sluggish. When na next was taking over a second to show me my next actions from a tiny 5KB file, I knew it was time to dig in and fix things. In case you’re unfamiliar, na is a…

  • YouTube to Markdown embed

    ,

    This is just a little 30-minute project I made for my own use, but figured I’d share. It simply takes a YouTube URL and converts it to GitHub-friendly Markdown for use in READMEs, wikis, and PR comments. GitHub doesn’t allow for <iframe>s, so you can’t actually embed a YouTube video in a README. You can,…

  • I’ve been playing around with progress bars in the terminal, and I think I’ve created something genuinely useful. Yes, I know there are multiple options already available for this, this is mostly just an experiment for me. I wanted to build a Ruby library that could be used for command-line scripting, with CLI executables that…

  • I’ve published a tiny Jekyll plugin that makes terminal commands in posts runnable with a click (in iTerm, at least). The iTerm tag plugin renders a fenced code block showing a command, and a “Run in iTerm” link that uses iTerm 2’s new(ish) command url scheme (iterm2:/command?c=COMMAND) to open the command in a confirmation box…

  • Spend some, get some

    ,

    I’ve built a paywall system for this blog. It was quite an endeavor to make a home-grown solution that works with my static Jekyll site, but I think I got it. From now on, I’ll be adding bonus content to posts that will only available to subscribers. You can subscribe at any level — the…

  • I’ve released v4 of md-lipsum, my API for generating Markdown Lorem Ipsum. This update introduces expanded source options, new query parameters for enhanced functionality, and is powered by the new ‘random-words’ Ruby gem. Try the new API: https://brettterpstra.com/md-lipsum Share Your Shortcuts! If you use the API to create any Apple Shortcuts, System Services, command line…

  • A few times over the last couple of years I’ve wanted to do an open poll to get a feel for how users felt about things, particularly icons during the design process. I found there aren’t a lot of affordable ways to do this. What I wanted was a way to upload multiple images and…