macos

36 posts tagged “macos”.

  1. 2024
  2. Close terminal window on Ctrl+D for macOS

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

    1 min read
  3. Creating desktop backgrounds using Midjourney

    I decided to create a new desktop background for my Mac using Midjourney. My laptop has a 16:10 aspect ratio and a retina screen, so I wanted as high a resolution image as possible.

    1 min read
  4. Editing an iPhone home screen using macOS

    My iPhone has a weird bug: I can no longer re-arrange the app icons on the home screen (or in the dock) by dragging them around on my phone.

    1 min read
  5. Transcribing MP3s with whisper-cpp on macOS

    I asked on Twitter for tips about running Whisper transcriptions in the CLI on my Mac. Werner Robitza pointed me to Homebrew's whisper-cpp formula, and when I complained that it didn't have quite…

    1 min read
  6. 2023
  7. Atuin for zsh shell history in SQLite

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

    1 min read
  8. Installing Python on macOS with the official Python installer

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

    1 min read
  9. Compile and run a new SQLite version with the existing sqlite3 Python library on macOS

    I've been trying to figure this out for years. Previous notes include Using LD PRELOAD to run any version of SQLite with Python (Linux only), and Building a specific version of SQLite with pysqlite on…

    1 min read
  10. Compiling the SQLite spellfix.c module on macOS

    I wanted to browse a backup copy of my Plex database, which is a SQLite file. I tried this: The module is an optional module for SQLite.

    1 min read
  11. Local wildcard DNS on macOS with dnsmasq

    I wanted to get wildcard DNS running on my Mac laptop, for development purposes. I wanted to point to my localhost IP address. I figured out how to do this using , installed via Homebrew.

    2 min read
  12. Accessing 1Password items from the terminal

    I save things like API keys in 1Password. Today I figured out how to access those from macOS terminal scripts.

    1 min read
  13. Finding the largest SQLite files on a Mac

    This runs using Spotlight so it's really fast: mdfind "kMDItemDisplayName == .sqlite" -0 xargs -0 stat "-f%z %N" sort -nr head -n 20 I have a lot of files in my Dropbox so I excluded those like this…

    1 min read
  14. Shrinking PNG files with pngquant and oxipng

    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.

    1 min read
  15. Driving an external display from a Mac laptop

    For a friend's wedding I needed to run a Google Photos slideshow on some large televisions. I had two MacBook Pro laptops. Here's how I got it to work.

    1 min read
  16. Allowing a container in Docker Desktop for Mac to talk to a PostgreSQL server on the host machine

    I like using Postgres.app to run PostgreSQL on my macOS laptop. I use it for a bunch of different projects.

    1 min read
  17. Building a specific version of SQLite with pysqlite on macOS/Linux

    I wanted the ability to test my Python software against specific version of SQLite on macOS. I found a way to do that using pysqlite3.

    1 min read
  18. Browse files (including SQLite databases) on your iPhone with ifuse

    I spotted an intriguing note in the release notes for osxphotos 0.51.7: Added ability to read Photos.sqlite from iPhone This lead me to osxphotos issue 745 which lead me to How to access iPhone files…

    1 min read