Skip to content

Instantly share code, notes, and snippets.

@RobertYim
RobertYim / create-iso.sh
Last active January 13, 2019 09:47 — forked from julianxhokaxhiu/create-iso.sh
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@RobertYim
RobertYim / Create macOS Recovery Partition.sh
Last active August 31, 2018 17:39 — forked from davidjb/recovery.sh
Create macOS Sierra Recovery Partition Without Reinstalling
# Specify where to configure Recovery partition, or a disk image larger then 5GB
TARGET="/Volumes/Macintosh HD"
# Path to your macOS installer
MACOS_INSTALLER="/Applications/$(ls /Applications | grep "Install macOS")"
# Remaining paths ahead are dependant on OS version
# This *should* support 10.9 and above but is only tested on 10.12
# Download the Recovery Disk image, as of version 10.13.6
curl -C - -O http://swcdn.apple.com/content/downloads/29/03/091-94326/45lbgwa82gbgt7zbgeqlaurw2t9zxl8ku7/RecoveryHDMetaDmg.pkg
@RobertYim
RobertYim / set-up-chromium-keys.md
Created July 22, 2020 15:29 — forked from cvan/set-up-chromium-keys.md
Launch Chromium with API Keys on Mac OS X and Windows

Sometimes you need to use API Keys to use things like the Speech API. And then you Google a bit and follow all the instructions. But the Chromium Project's API Keys page does a not-so-great of explaining how to do this, so I will.

  1. Download Chromium.
  2. You'll notice a yellow disclaimer message appear as a doorhanger: Google API Keys are missing. Some functionality of Chromium will be disabled. Learn More.
  3. Clicking on that link takes you to the confusing API Keys docs page.
  4. If you aren't already, subscribe to the [email protected] mailing list. (You can just subscribe to the list and choose to not receive any mail. FYI: the Chromium project restricts the APIs to those subscribed to that group - that is, Chromium devs.)
  5. Make sur
@RobertYim
RobertYim / DEPSteps.md
Created April 19, 2024 14:51
Remove MDM & DEP from an Apple Sillicon Mac (Sonoma)

How to make an MDM Mac shine like it's brand new ?

Works, as of 14/04/2024, on macOS 14.4.1 and lower (prob higher but idk)

This was made for Apple Sillicon Macs.

Restore Process

You need another Mac for this.

If you don't have one and have recovery locked, it's not possible.