Skip to content

Instantly share code, notes, and snippets.

@startergo
startergo / qemu_whpx.md
Last active January 19, 2025 22:38
Build QEMU with enabled Hyper-v acceleration (WHPX) and Intel acceleration (HAXM) on Windows
@startergo
startergo / macos-distribution.md
Created November 1, 2024 12:02 — forked from rsms/macos-distribution.md
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@startergo
startergo / fix-xcode
Last active October 31, 2024 13:58 — forked from rnapier/fix-xcode
Links Xcode SDKs from the /SDKs directory (which you maintain yourself)
#!/usr/bin/env python3
# fix-xcode
# Rob Napier <[email protected]>
# Script to link in all your old SDKs every time you upgrade Xcode
# Create a directory called /SDKs (or modify source_path).
# Under it, put all the platform directories:
# MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform
# Under those, store the SDKs:
@startergo
startergo / sdk_path.md
Last active October 30, 2024 16:17
Set own SDK path for Xcode
  • Copy the SDK to:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
  • Link the desired SDK to the MacOSX.sdk:
sudo ln -s MacOSX.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
  • Check if the correct path is set:
@startergo
startergo / change-sdk.sh
Created October 30, 2024 16:11 — forked from bodja/change-sdk.sh
Download MacOSX SDK version and change minimum sdk version in info.plist
SDK_VERSION=$1
SDK_NAME="MacOSX${SDK_VERSION}.sdk"
TAR_FILE_NAME="${SDK_NAME}.tar.xz"
DOWNLOAD_URL="https://github.com/phracker/MacOSX-SDKs/releases/download/MacOSX10.11.sdk/${TAR_FILE_NAME}"
TAR_FILE_DEST="/tmp/${TAR_FILE_NAME}"
SDK_MIN_VERSION_FILE="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist"
SDK_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/"
echo Downloading $SDK_NAME
curl -L $DOWNLOAD_URL -o $TAR_FILE_DEST --progress-bar
@startergo
startergo / Instructions.md
Created October 29, 2024 16:44 — forked from robvanoostenrijk/Instructions.md
Install Mac OS X 10.6 SDK on newer Xcode
@startergo
startergo / kernelcache
Created October 27, 2024 16:15 — forked from krmnn/kernelcache
rebuild OS X kernelcaches from Mavericks upward
kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions
@startergo
startergo / piptopip3.md
Created October 20, 2024 18:03
Install pip for Python 3 and make Python 3 version of pip default.
  • Run this:
pip3 install --upgrade --force pip
  • Or even more explicit:
python3 -m pip install --upgrade --force pip
  • Validate with:
@startergo
startergo / Service KMS
Created June 22, 2024 19:44 — forked from judero01col/Service KMS
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato

Disable:

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist

Enable:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist