Skip to content

Instantly share code, notes, and snippets.

@eddieh
eddieh / macos-appstore-installer-to-iso.org
Created November 29, 2021 07:42
Convert macOS App Store Installer to a Bootable ISO

Convert macOS App Store Installer to a Bootable ISO

IMG=Catalina
APPRES="/Applications/Install macOS Catalina.app/Contents/Resources"
#!/bin/bash
# tputcolors
# http://linuxtidbits.wordpress.com/2008/08/11/output-color-on-bash-scripts/
echo
echo -e "$(tput bold) reg bld und tput-command-colors$(tput sgr0)"
for i in $(seq 0 7); do
echo " $(tput setaf $i)Text$(tput sgr0) $(tput bold)$(tput setaf $i)Text$(tput sgr0) $(tput sgr 0 1)$(tput setaf $i)Text$(tput sgr0) \$(tput setaf $i)"
done
@eddieh
eddieh / gnu-make-oddness.org
Created December 29, 2021 01:22
GNU Make Oddness (with -rR)

GNU Make Oddness

Since version 4.0 of GNU Make a feature was added that almost every makefile should use. The 4.0 release notes describes the feature as “setting the -r and -R options in MAKEFLAGS inside a makefile now works as expected, removing all builtin rules and variables, respectively.”

@eddieh
eddieh / Makefile
Last active May 14, 2022 23:30
libdispatch.dylib Makefiles for building 32 bit libdispatch
SUBDIRS += dispatch
SUBDIRS += os
SUBDIRS += private
SUBDIRS += src
SDK_ROOT=/Applications/Xcode9.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
libpthread_path=$(abspath ../libpthread-301.50.1)
libplatform_path=$(abspath ../libplatform-161.50.1)
xnu_path=$(abspath ../xnu-4570.71.2)