Skip to content

Instantly share code, notes, and snippets.

@hartmantis
hartmantis / macos_bootstrap.sh
Last active August 22, 2024 02:46
macOS bootstrap script
#!/bin/bash
#
# Provisioning script for a new macOS Big Sur machine.
# To bootstrap a brand new box:
# * Build a bootable USB installer drive:
# - Partition a USB flash drive as appropriate
# - On an existing macOS box, search the App Store for "Big Sur"
# - Download macOS and wait for the installer screen to pop up
# - Build the install media:
# sudo /Applications/Install\ macOS\ Big\ Sur.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
@hartmantis
hartmantis / windows_bootstrap.ps1
Last active August 14, 2021 02:42
Windows gaming PC bootstrap script
# There are some steps that can't be done in PowerShell:
#
# Before:
# * Install Windows
# * Run Windows Update and reboot as needed
# * Install WinGet via your desired method (Maybe it's included with AppInstaller by now?)
#
# After:
# * Run the Logitech app and change the touchpad scroll direction
# * Run 1Password and sign in