Skip to content

Instantly share code, notes, and snippets.

View ColGren's full-sized avatar

Col Grenfell ColGren

View GitHub Profile
@zhuhuilin
zhuhuilin / README.md
Created November 25, 2025 14:15
Enable macOS Internet Sharing without an actual internet connection. Three bash scripts using only native macOS commands - no installations required. Perfect for creating local WiFi networks for development, testing, and device-to-device communication.

macOS Internet Sharing Without Internet Connection

Three bash scripts to enable macOS Internet Sharing (Personal Hotspot) without requiring an actual internet connection. Perfect for creating local WiFi networks for development, testing, or device-to-device communication.

✨ Features

  • Zero dependencies - Uses only native macOS commands
  • Smart & safe - Preserves existing configurations
  • Reversible - Easy setup and teardown
  • State tracking - Remembers what was changed
@LeeKahSeng
LeeKahSeng / Decode-Dynamic-Keys-JSON-Final.swift
Last active January 11, 2025 16:21
Decode and Flatten JSON with Dynamic Keys Using Swift Decodable (https://swiftsenpai.com/swift/decode-dynamic-keys-json/)
import Foundation
let jsonString = """
{
"S001": {
"firstName": "Tony",
"lastName": "Stark"
},
"S002": {
"firstName": "Peter",