Skip to content

Instantly share code, notes, and snippets.

AJ ONeal solderjs

Block or report user

Report or block solderjs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@solderjs
solderjs / Create a Bootable MacOS Recovery USB with Linux.md
Last active Mar 30, 2020
How to create Apple's Bootable MacOS Rescue Image from Linux
View Create a Bootable MacOS Recovery USB with Linux.md

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+.

@solderjs
solderjs / create-bootable-installer-for-macos-high-sierra.sh
Last active Apr 2, 2020
How to create a bootable macOS High Sierra Installer from MacOS. See https://bootableinstaller.com
View create-bootable-installer-for-macos-high-sierra.sh
####################################################################################################
# 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
@solderjs
solderjs / create-bootable-installer-for-macos-mojave.sh
Last active Mar 15, 2020
How to create a bootable macOS Mojave Installer from MacOS. See https://bootableinstaller.com
View create-bootable-installer-for-macos-mojave.sh
#########################
# bootableinstaller.com #
#########################
set -e
set -u
# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Mojave" -layout SPUD -fs HFS+J
@solderjs
solderjs / Empty Bootable macOS ISOs.md
Last active Mar 27, 2020
Empty ISOs for creating Bootable MacOS Installers
View Empty Bootable macOS ISOs.md

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
@solderjs
solderjs / create-bootable-installer-for-macos-catalina.sh
Last active Mar 15, 2020
How to create a bootable macOS Catalina Installer from MacOS. See https://bootableinstaller.com
View create-bootable-installer-for-macos-catalina.sh
#########################
# bootableinstaller.com #
#########################
set -e
set -u
# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Catalina" -layout SPUD -fs HFS+J
@solderjs
solderjs / create-bootable-installer-for-os-x-el-capitan.sh
Last active Mar 31, 2020
How to create a bootable El Capitan Installer from MacOS. See https://bootableinstaller.com
View create-bootable-installer-for-os-x-el-capitan.sh
################################################################################
# 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
@solderjs
solderjs / MacOS-Icons.md
Last active Mar 11, 2020
MacOS Default Icons Locations
View MacOS-Icons.md

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:

View Windows PowerShell Tricks.md

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
@solderjs
solderjs / powershell.go
Created Mar 5, 2020 — forked from coolbrg/powershell.go
Playing PowerShell command via Golang
View powershell.go
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
You can’t perform that action at this time.