macos

Posts tagged with #macos
Total: 3

Enable system extensions on Apple silicon Mac

Notes | 2023-04-20 (updated 2025-10-25) | 1 min read
#apple-silicon #macos

Think before you enable this, it could be a security risk

Looping Dates macOS

Notes | 2021-08-07 (updated 2025-10-25) | 1 min read
#bash #macos

date on MacOS does not support --date, so a workaround is needed. Converting Date to unix epoch, adding one day in epoch and converting back.

The Scripty Way

Taken from a blog post

#!/bin/zsh

start=$year-01-01
end=$year-12-31
currentDateTs=$(date -j -f "%Y-%m-%d" $start "+%s")
endDateTs=$(date -j -f "%Y-%m-%d" $end "+%s")
offset=86400

while [ "$currentDateTs" -le "$endDateTs" ]
do
  date=$(date -j -f "%s" $currentDateTs "+%Y-%m-%d")
  echo $date
  currentDateTs=$(($currentDateTs+$offset))
done

The Brew Way

As I found out long after writing the above you can simply brew install coreutils and get a date command with the --date option. The only thing to note there is this: Commands also provided by macOS have been installed with the prefix "g".

Read more…

MacOS

Notes | 2020-01-01 (updated 2025-10-25) | 1 min read
#macos #slashpage-uses

My operating system of choice on the client, usually on a MacBook Pro.