Simon Willison: TILs on macos

macos Atuin for zsh shell history in SQLite - 2022-04-26

Atuin (via Rhet Turnbull) "replaces your existing shell history with a SQLite database". Obviously I had to try this out! …

macos Seeing files opened by a process using opensnoop - 2022-04-26

I decided to try out atuin, a shell extension that writes your history to a SQLite database. …

macos Trick Apple Photos into letting you access your video files - 2022-04-12

I had an 11GB movie in Apple Photos (sync'd from my iPhone) and I wanted to upload it to YouTube (actually via AirDrop to another laptop first). …

macos Installing Python on macOS with the official Python installer - 2022-02-28

I usually use Homebrew on macOS, but I decided to try using the official Python installer based on this Twitter conversation. …

macos Using lsof on macOS - 2021-12-11

lsof stands for "list open files". Here are some very basic usage notes for the version that ships with macOS. …

macos Running Docker on an M1 Mac - 2021-05-25

TLDR: Use platform: linux/amd64 in docker-compose.yml and your containers will probably work!

macos Shrinking PNG files with pngquant and oxipng - 2021-02-07

I usually use Squoosh.app to reduce the size of my PNGs, but in this case I had a folder with nearly 50 images in it so I wanted to do it using the command-line. …

macos Finding the largest SQLite files on a Mac - 2020-08-19

This runs using Spotlight so it's really fast: …

macos Fixing "compinit: insecure directories" error - 2020-04-26

Every time I opened a terminal on my new Mac running Catalina with zsh I got the following annoying error: …

macos Close terminal window on Ctrl+D for macOS - 2020-04-21

I always forget how to set this up. It's hidden in Preferences -> Profiles -> Basic -> Shell: …

macos Get Skitch working on Catalina - 2020-04-21

I really like Skitch for taking screeshots, mainly because I like to snap a quick shot and then drag the icon onto a Google Doc or similar without saving the file anywhere. …

macos Running pip install -e .[test] in zsh on macOS Catalina - 2020-04-21

macOS Catalina uses zsh rather than bash as the default shell (apparently because Apple don't like GPL 3). …