Skip to content

Instantly share code, notes, and snippets.

@peterwake
peterwake / sent-emails-summariser.scpt
Last active December 8, 2023 22:11
For Mac Mail users, summarises emails in your sent mailbox
-- Designed for Mac Mail users, this AppleScript program will search through the SENT items of your chosen mailbox
-- It is designed to help you (for example) if you are transitioning to a CRM system
-- run it by typing osascript sent-emails-summariser.scpt on the command line
-- It will produce summary csv file that shows:
-- How many emails were sent to each email address
-- How many emails were sent in total to all emails with the same domain ending
-- A domain rank whereby emails to domains ending .ac.uk, etc, rank higher
-- once you have the csv file, sort it in Excel e.g. by ascending DomainRank, descending DomainCount, Domain a-z, Count descending, Email a-z.
@peterwake
peterwake / install_hugo_0.120.3.md
Created February 22, 2025 17:06
Keeping an older version of Hugo on MacOS if Homebrew updates it

Installing Hugo 0.120.3 on macOS (Apple Silicon)

22 Feb 2025

My Hugo site stopped running locally, because Hugo and the theme I am using (Academic CV) switched dramatically from Bootstrap to Tailwind CSS, as well as a bunch of other behaviour changes. I don't have the time to update everything. But Homebrew had already updated Hugo to the latest version. And there's no option to simply tap an older version in Homebrew.

This guide documents the process of manually installing Hugo 0.120.3 on a Mac with an M1/M2/M3 processor and ensuring Homebrew does not update it. I thought I'd share it for anyone else with this problem. The usual disclaimers - you do this at your own risk, etc. etc.

0. Install the latest version using Homebrew