Skip to content

Instantly share code, notes, and snippets.

View evangwt's full-sized avatar
🎯
Focusing

evangwt

🎯
Focusing
View GitHub Profile
@evangwt
evangwt / notifyAddrChange.go
Created January 16, 2021 09:39 — forked from KatelynHaworth/notifyAddrChange.go
A simple go program leveraging the Window API to listen for IPv4 network address change events
package main
import (
"log"
"syscall"
"unsafe"
"golang.org/x/sys/windows"
)
@evangwt
evangwt / build-mojave-iso-image.sh
Last active January 6, 2022 03:26
Create macOS Mojave ISO Image Shell Script
#!/bin/bash
# Create DMG Disk with Terminal
hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J
# Mount DMG Disk to your macOS
hdiutil attach /tmp/mojave.dmg -noverify -mountpoint /Volumes/mojave
# Create macOS Mojave Installer
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/mojave --nointeraction