macos

36 posts tagged “macos”.

  1. 2025
  2. 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
  3. Using lsof on macOS

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

    1 min read
  4. Using fs_usage to see what files a process is using

    Today I wanted to figure out where the CLI tool on my Mac kept its authentication tokens. I solved the problem using the macOS command, which traces filesystem activity for everything or for a…

    2 min read
  5. 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
  6. Compiling to WASM with llvm on macOS

    howto-wasm-minimal by Zalka Ernő (my fork here) is a neat demo of a minimal WASM module. It uses C++ to define functions for simple image manipulation including blurring an image, compiles it to WASM…

    1 min read
  7. Bundling Python inside an Electron app

    I used python-build-standalone for this, which provides a version of Python that is designed for easy of bundling - it's also used by PyOxidize.

    1 min read
  8. 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
  9. 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
  10. impaste: pasting images to piped commands on macOS

    I wanted the ability to paste the image on my clipboard into a command in the macOS terminal. It turns out only works with textual data - so copying a portion of a screenshot to my clipboard (using…

    1 min read
  11. Syncing slide images and audio in iMovie

    I found an MP3 recording of an old talk I gave and decided to use the slides from that talk to create a video using iMovie.

    1 min read
  12. Geocoding from Python on macOS using pyobjc-framework-CoreLocation

    Rhet Turnbull shared this short script for looking up the named timezone for a given location from Python on macOS using and the framework. It uses the package and pyobjc-framework-CoreLocation.

    1 min read
  13. How to run MediaWiki with SQLite on a macOS laptop

    Today I got curious about how MediaWiki records page history, so I started digging around and in the process figured out how to run it against a SQLite database on my macOS laptop!

    2 min read
  14. 2024
  15. Running Docker on an M1 Mac

    TLDR: Use in and your containers will probably work! I was trying to figure out how to get a development environment for a Django project running inside Docker in a M1 Mac.

    3 min read
  16. Get Skitch working on Catalina

    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.

    1 min read
  17. Grabbing a transcript of a short snippet of a YouTube video with MacWhisper

    I use the MacWhisper macOS desktop app to run Whisper. It's a very pleasant GUI wrapper around the Whisper transcription model.

    1 min read
  18. Browsing your local git checkout of homebrew-core

    The homebrew-core repository contains all of the default formulas for Homebrew. It's a huge repo, and if you browse it through the GitHub web interface you can run into errors like this one…

    1 min read
  19. Trick Apple Photos into letting you access your video files

    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).

    1 min read
  20. Running pip install -e .[test] in zsh on macOS Catalina

    macOS Catalina uses rather than as the default shell (apparently because Apple don't like GPL 3). I usually set up my Python projects for development like this: datasette % pipenv shell Launching…

    1 min read
  21. Seeing files opened by a process using opensnoop

    I decided to try out atuin, a shell extension that writes your history to a SQLite database. It's really neat.

    1 min read
  22. sips: Scriptable image processing system

    I wanted to convert some images to on my Mac. I asked ChatGPT: On MacOS use CLI to convert webp images to PNG And it told me about : sips -s format png image.webp –out image.png Or to run it against…

    1 min read