Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell
View GitHub Profile
@coolaj86
coolaj86 / Create a Bootable MacOS Recovery USB with Linux.md
Last active October 10, 2025 22:16
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@coolaj86
coolaj86 / create-bootable-installer-for-macos-high-sierra.sh
Last active June 20, 2023 22:30
How to create a bootable macOS High Sierra Installer from MacOS. See https://bootableinstaller.com
####################################################################################################
# bootableinstaller.com #
####################################################################################################
set -e
set -u
# Create an empty 5200m+ volume
hdiutil create -o high-sierra -size 5500m -volname "Install macOS High Sierra" -layout SPUD -fs HFS+J
@coolaj86
coolaj86 / create-bootable-installer-for-macos-mojave.sh
Last active February 5, 2021 13:47
How to create a bootable macOS Mojave Installer from MacOS. See https://bootableinstaller.com
#########################
# bootableinstaller.com #
#########################
set -e
set -u
# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Mojave" -layout SPUD -fs HFS+J
@coolaj86
coolaj86 / Empty Bootable macOS ISOs.md
Last active February 5, 2021 13:50
Empty ISOs for creating Bootable MacOS Installers

See https://bootableinstaller.com

Empty Bootable ISO

In order to create a bootable macOS installer or bootable OS X Installer from Windows or Linux you'll need to have an empty ISO file.

These are various sizes of SPUD / Apple Partition Map ISO files created with hdiutil.

macOS verison Suggested Minimum Suggested Maximum
@coolaj86
coolaj86 / create-bootable-installer-for-macos-catalina.sh
Last active April 12, 2021 20:29
How to create a bootable macOS Catalina Installer from MacOS. See https://bootableinstaller.com
#########################
# bootableinstaller.com #
#########################
set -e
set -u
# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Catalina" -layout SPUD -fs HFS+J
@coolaj86
coolaj86 / create-bootable-installer-for-os-x-el-capitan.sh
Last active June 21, 2023 07:45
How to create a bootable El Capitan Installer from MacOS. See https://bootableinstaller.com
################################################################################
# See bootableinstaller.com #
################################################################################
# set strict and verbose modes for bash
set -e
set -u
# If the script already ran once successfully, don't re-run
if [ -f "el-capitan.iso" ]; then
@coolaj86
coolaj86 / MacOS-Icons.md
Last active September 24, 2025 17:36
MacOS Default Icons Locations

How to Find ANY Icon

  1. Open the application such that you see the icon on your screen.
  2. Open Activity Monitor
  3. Double click the name of the application (i.e. Finder or System Preferences)
  4. Select "Open Files and Ports"
  5. Copy the output to a file and then grep for .icns

Similarly you could run this command, but it may take several minutes to complete:

Set Shortcut to run as admin:

Enable-WindowsOptionalFeature -Online -FeatureName 'microsoft-windows-subsystem-linux' -All -Verbose
Enable-WindowsOptionalFeature -Online -FeatureName 'VirtualMachinePlatform' -All -Verbose
Enable-WindowsOptionalFeature -Online -FeatureName 'HypervisorPlatform' -All -Verbose
@coolaj86
coolaj86 / powershell.go
Created March 5, 2020 05:47 — forked from brgnepal/powershell.go
Playing PowerShell command via Golang
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct