Upgrading Homebrew and avoiding the failed to verify attestation error
I managed to get my Homebrew installation back into shape today. The first problem I was having is that it complained that macOS Sequoia was unsupp...
430 words
|
2 minutes
Using awk to add a prefix
I wanted to dynamically run the following command against all files in a directory:
170 words
|
1 minute
Sort by number of JSON intersections
This [post on Reddit](https://www.reddit.com/r/sqlite/comments/wr0wp0/i_have_a_sqlite_database_of_recipes_i_would_like/) asked how to run a query t...
446 words
|
2 minutes
Deploying CoreDNS and StepCA with Kubernetes Manifests Using Quadlet on CoreOS
A comprehensive guide to deploying and configuring CoreDNS and StepCA infrastructure using Kubernetes manifests through Quadlet on Fedora CoreOS, enabling integrated DNS and certificate management.
1785 words
|
9 minutes
How to mock httpx using pytest-mock
I wrote this test to exercise some [httpx](https://pypi.org/project/httpx/) code today, using [pytest-mock](https://pypi.org/project/pytest-mock/).
316 words
|
2 minutes
How I studied for my Ham radio general exam
I scraped a pass on my Ham radio general exam today, on the second attempt (you can retake on the same day for an extra $15, thankfully).
963 words
|
5 minutes
macOS Catalina sort-of includes Python 3
Once you have installed the "command line tools" for Catalina using the following terminal command:
483 words
|
2 minutes
Running a Python ASGI app on Vercel
Vercel really wants you to deploy static assets with [serverless functions](https://vercel.com/docs/serverless-functions/introduction) tucked away ...
219 words
|
1 minute
Mocking subprocess with pytest-subprocess
For [apple-notes-to-sqlite](https://github.com/dogsheep/apple-notes-to-sqlite) I needed to write some tests that simulated executing the `osascript...
283 words
|
1 minute
Running the latest SQLite in Datasette using Homebrew
I made a pleasant discovery today: Homebrew are very quick to update to the latest SQLite release (here's [their formula](https://github.com/Homebr...
138 words
|
1 minute
Catching up with the Cosmopolitan ecosystem
I caught up with some of the latest developments in the ecosystem around Justine Tunney's [cosmopolitan](https://github.com/jart/cosmopolitan) and ...
1192 words
|
6 minutes
Dropdown menu with details summary
I added dropdown menus to [Datasette 0.51](https://docs.datasette.io/en/stable/changelog.html#v0-51) - see [#1064](https://github.com/simonw/datase...
351 words
|
2 minutes
Compiling to WASM with llvm on macOS
[howto-wasm-minimal](https://github.com/ern0/howto-wasm-minimal) by Zalka Ernő ([my fork here](https://github.com/simonw/howto-wasm-minimal)) is a ...
760 words
|
4 minutes
Running Datasette on DigitalOcean App Platform
[App Platform](https://www.digitalocean.com/docs/app-platform/) is the new PaaS from DigitalOcean. I figured out how to run Datasette on it.
334 words
|
2 minutes
Adding Custom CA Certificates to Podman - A Complete Guide
A comprehensive guide to adding and managing custom Certificate Authority (CA) certificates in Podman environments, with detailed methods for both manual certificate installation and integrated CA infrastructure using Smallstep.
1550 words
|
8 minutes
Scraping the Sky News Westminster Accounts, a Flourish application
Sky News in partnership with [Tortoise](https://www.tortoisemedia.com/) published a fantastic piece of investigative data reporting: [the Westminst...
694 words
|
3 minutes
Assigning a custom subdomain to a Fly app
I deployed an app to [Fly](https://fly.io/) and decided to point a custom subdomain to it.
178 words
|
1 minute
Back-dating Git commits based on file modification dates
I fell down a bit of a rabbit hole this morning. In trying to figure out [where the idea of celebrating World Wide Web Day on August 1st](https://s...
938 words
|
5 minutes
Enabling WAL mode for SQLite database files
I was getting occasional `Error: database is locked` messages from a Datasette instance that was running against a bunch of different SQLite files ...
345 words
|
2 minutes
Relinquishing control in Python asyncio
`asyncio` in Python is a form of co-operative multitasking, where everything runs in a single thread but asynchronous tasks can yield to other task...
137 words
|
1 minute
Importing CSV data into SQLite with .import
I usually use my `sqlite-utils insert blah.db tablename file.csv --csv` command to import CSV data into SQLite, but for large CSV files (like a 750...
144 words
|
1 minute
Downloading every video for a TikTok account
TikTok may or may not be banned in the USA within the next 24 hours or so. Here's a pattern you can use to download all of the videos from a specif...
1013 words
|
5 minutes
kubectl proxy
Learned about this today as a way of accessing the Kubernetes REST API.
233 words
|
1 minute
Building a Complete PKI Infrastructure - Creating Your Own Certificate Authority
A comprehensive guide to building a robust, multi-tier PKI infrastructure with your own Certificate Authority (CA), including detailed explanations, automation scripts, and security best practices for enterprise deployments.
2713 words
|
14 minutes