Skip to content

Instantly share code, notes, and snippets.

@startergo
startergo / ntfs-3g_macOS.md
Last active December 1, 2024 15:09
Installing NTFS-3g on macOS
brew tap gromgit/homebrew-fuse
brew install ntfs-3g-mac
  • Or with MacPorts:
sudo port install NTFS-3g
@startergo
startergo / qemu-img.md
Last active May 10, 2026 23:33
How to: Use qemu-img command to convert between vmdk, raw, qcow2, vdi, vhd, vhdx formats/disk images (qemu-img create, snapshot, resize etc.)
  • First we need to have qemu installed on the system, for most of Linux systems, we can install “qemu-utils” for Windows we can download QEMU disk image utility from here

  • Other related questions

How to open raw disk from VMware
How to open qcow2 disk from VMware
How to open vdi disk from VMware
How to open raw disk from Hyper-V
How to open qcow2 disk from Hyper-V
How to open vdi disk from Hyper-V
@startergo
startergo / haxm_qemu.md
Last active November 27, 2024 02:19
QEMU with enabled HAXM acceleration on Windows
$bcdedit /set hypervisorlaunchtype off
@powershell -ExecutionPolicy RemoteSigned -Command "C:\<dgreadiness_location>\dgreadiness_v3.6\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
  • Check Installation:
@startergo
startergo / convert_folder_iso.md
Created November 27, 2024 00:20
Convert folder to ISO for access in QEMU on Windows

Fast way to convert some folders on your host machine to .iso files so that you can mount them as CDs on your guest OS. This is a way of how to do it. Save code from New-ISOFile/New-ISOFile.ps1 at main · TheDotSource/New-ISOFile as New-ISOFile.ps1 on your computer. Check if the code source is safe. Open Windows command prompt under a normal user Navigate to the folder where you've saved New-ISOFile.ps1 using the command prompt. Run this command:

powershell -ExecutionPolicy Bypass -noprofile -c "& {  . .\New-ISOFile.ps1; New-ISOFile -source 'C:\Downloads\folder_you_want_to_convert_to_iso\' -destinationIso C:\folder_not_requiring_admin_priveleges_to_save_into_it\testiso.iso }"

Now, you can launch qemu so that your guest OS see that .iso file as a mounted CDROM.

@startergo
startergo / automake.md
Last active November 15, 2024 10:59
How to use Automake
  • Install Autotools
  • Use autoreconf -vfi so that it runs all the relevant tools in the right order, and installs the missing files
  • Run:
aclocal
automake
autoconf
  • Configure the build:
@startergo
startergo / qemu_whpx.md
Last active April 26, 2026 07:45
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 June 20, 2025 13:12 — forked from rnapier/fix-xcode
Links Xcode SDK from the ~/SDKs directory (which you maintain yourself)
#!/usr/bin/env python3
# fix-xcode
# Rob Napier <robnapier@gmail.com>
# 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