Skip to content

Instantly share code, notes, and snippets.

@startergo
startergo / gfxutil.sh
Last active January 8, 2021 17:40 — forked from joevt/gfxutil.sh
macOS nvram boot variables, device properties, EFI device paths
# joevt Nov 22, 2020
# https://forums.macrumors.com/threads/documentation-on-all-parameters-for-nvram.2239034/post-28518123
gfxutilcmd=~/Downloads/gfxutil
alias gfxutil="'$gfxutilcmd'"
nvramp () {
local thename="$1"
local thedata="" # must declare local separately for $? to get the error
@startergo
startergo / modifyedid.py
Created October 31, 2020 22:23 — forked from xxxzc/modifyedid.py
Get and modify laptop 4k display edid for big sur
# Get and modify laptop 4k display edid for big sur
# Created by xxxzc
# Reference: http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=1866466&highlight=edid
from subprocess import check_output
from base64 import b64encode
edid = check_output('ioreg -lw0 | grep -i "IODisplayEDID"',
shell=True, encoding='utf-8')
edid = edid.split('<')[1].split('>')[0]
print('Display EDID:', edid)
edid = edid[:108] + 'a6a6' + edid[112:] # set refresh rate to 48Hz
@startergo
startergo / myOC.tool
Created August 28, 2020 15:41 — forked from dakanji/myOC.tool
Builds/Patches OpenCore (v0.5.x onwards)
#!/usr/bin/env bash
# myOC.tool
# A tool to patch and/or build OpenCore (v0.5.x onwards)
#
# (c) 2020 Dayo Akanji <[email protected]>
# MIT License
# Script Params
# LBL_FIX : '0' (Default) or any other value to address drive APFS Label Bug.
[wsl2]
kernel=C:\\Users\\JAKA\\vmlinux
@startergo
startergo / macOS-in-virtualbox.md
Created June 26, 2020 13:30 — forked from rob-smallshire/macOS-in-virtualbox.md
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host

On Mac

Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at /Applications/Install\ macOS\ Sierra.app/.

Now run the following commands to build a suitable VM image from the installer:

git clone https://github.com/jonanh/osx-vm-templates
cd osx-vm-templates/packer

sudo ../prepare_iso/prepare_vdi.sh -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ Sierra.app/ .