cli

81 posts tagged “cli”.

  1. 2025
  2. issue.db / your issue tracker in your repo

    So this was this week's side project: issue-queue.readthedocs.io here is the workflow: I hope you find it useful.

    1 min read
  3. Flattening nested JSON objects with jq

    I wanted to take a nested set of JSON objects and import them into a SQLite database using - but I wanted to "flatten" some of the nested rows.

    1 min read
  4. Clone, edit and push files that live in a Gist

    GitHub Gists are full Git repositories, and can be cloned and pushed to. You can clone them anonymously (read-only) just using their URL: git clone…

    1 min read
  5. Exporting and editing a Twitter Spaces recording

    I hosted a Twitter Spaces conversation the other day. The recording is only available for 30 days afterwards, and I wanted to publish it elsewhere.

    1 min read
  6. A shell script for running Go one-liners

    bitfield/script is a really neat Go project: it tries to emulate shell scripting using Go chaining primitives, so you can run code like this: To achieve the same thing as: A comment from on Hacker…

    2 min read
  7. Configuring GitHub Codespaces using devcontainers

    GitHub Codespaces provides full development environments in your browser, and is free to use with anyone with a GitHub account.

    3 min read
  8. Automatically maintaining Homebrew formulas using GitHub Actions

    I previously wrote about Packaging a Python CLI tool for Homebrew. I've now figured out a pattern for automatically updating those formulas over time, using GitHub Actions.

    3 min read
  9. Finding CSV files that start with a BOM using ripgrep

    For sqlite-utils issue 250 I needed to locate some test CSV files that start with a UTF-8 BOM. Here's how I did that using ripgrep: The option means the search spans multiple lines - I only want to…

    1 min read
  10. Creating a tiled zoomable image with OpenSeadragon and vips

    The San Francisco Microscopical Society has some extremely high resolution scanned images - one of them is a 1.67GB PNG file with a 25,088 × 17,283 pixel resolution.

    1 min read
  11. Converting ORF raw files to JPEG on macOS

    One of our cameras takes raw photos in ORF format, which I believe stands for "Olympus Raw Format". Here's a recipe I found for converting them to JPEG on macOS: The result is a directory containing a…

    1 min read
  12. Compiling and running sqlite3-rsync

    Today I heard about the sqlite3-rsync command, currently available in a branch in the SQLite code repository.

    1 min read
  13. Assigning a custom subdomain to a Fly app

    I deployed an app to Fly and decided to point a custom subdomain to it. My fly app is https://datasette-apache-proxy-demo.fly.dev/ I wanted the URL to be…

    1 min read
  14. Auto-formatting YAML files with yamlfmt

    I decided to see if there was an equivalent of Black or Prettier for YAML files. I found yamlfmt from Google. Update : It turns out Prettier can format YAML too.

    2 min read
  15. Customizing my zsh prompt

    I got fed up of the default macOS prompt: simon@Simons-MacBook-Pro % Mainly because I like copying and pasting terminal examples into GitHub issues.

    1 min read
  16. Fixing "compinit: insecure directories" error

    Every time I opened a terminal on my new Mac running Catalina with zsh I got the following annoying error: Based on a tip in https://github.com/zsh-users/zsh-completions/issues/680 I fixed it by doing…

    1 min read
  17. axe-core and shot-scraper for accessibility audits

    I just watched a talk by Pamela Fox at North Bay Python on Automated accessibility audits. The video should be up within 24 hours.

    1 min read
  18. ---

    — A one-liner to output details of the current Python's SQLite 2025-10-19 Farshid Ashouri TIL,sqlite In investigating llm/issues/164 I found myself needing to know more precise details of the Python…

    1 min read
  19. Embedding paragraphs from my blog with E5-large-v2

    Xeophon suggested that E5-large-v2 as an embedding model that was worth a closer look. It's an interesting model. It's trained to match queries against passages of text.

    6 min read
  20. Extracting web page content using Readability.js and shot-scraper

    Readability.js is "A standalone version of the readability library used for Firefox Reader View". I figured out how to use the two of these together to extract the core content from a web page using…

    1 min read
  21. Convert git log output to JSON using jq

    I just spent way too long messing around with ChatGPT (transcript here) trying to figure this out. After much iteration, here's a recipe that works (mostly written by me at this point): The output…

    1 min read