Skip to content

Instantly share code, notes, and snippets.

View drunknbass's full-sized avatar
🏠
Working from home

Aaron Alexander drunknbass

🏠
Working from home
View GitHub Profile
@drunknbass
drunknbass / xcode-27-ios-27-migration-guide.md
Last active July 22, 2026 20:59
Xcode 27 / iOS & iPadOS 27 migration guide — verified APIs, compiler changes, and SwiftUI best practices

Xcode 27 / iOS & iPadOS 27 Migration Guide

Research snapshot: July 22, 2026
Locally verified with: Xcode 27 beta build 27A5194q, Apple Swift 6.4 (swiftlang-6.4.0.20.104), iOS 27.0 SDK
Scope: the 12 unique X posts supplied for this research, the related Xcode 27 @State migration discussed immediately before them, a July 22 inventory pass across all 87 posts then listed in Blake Crosley's Apple Ecosystem series (published April 28 through June 15, 2026), and authenticated Grok searches for follow-up X discussion across the resulting topic clusters. The repeated X link 2076630236222124076 is counted once. X and the series were used as discovery material; migration claims below are promoted to Confirmed only when Apple material or a reproducible SDK/compiler result supports them.

This guide distinguishes three evidence levels:

  • Confirmed: Apple documentation, Apple WWDC material, the exported Apple-authored Xcode 27 c
@drunknbass
drunknbass / install-claudez.sh
Created October 21, 2025 00:23
claudez installer - Securely configure Claude Code with z.ai integration (macOS)
#!/bin/bash
# claudez installer - Securely configure Claude Code with z.ai integration
# This script stores your API key in macOS keychain and creates a shell alias
set -e # Exit on error
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
@drunknbass
drunknbass / toggledarkmode.command
Last active March 25, 2020 23:33
Toggle dark mode on currently running simulator
#! /bin/sh
booted_uuids=`xcrun simctl list devices | \
grep "(Booted)" | \
grep -E -o -i "([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12})"`
all_uuids=($(echo $booted_uuids | tr ";" "\n"))
last_uuid=${all_uuids[${#all_uuids[@]}-1]}
exit_cleanly() {
@drunknbass
drunknbass / gist:6bba2c6b787c2426432342b54cbb8ed2
Created September 20, 2017 06:13
iOS Simulator Video Utils
brew install gifsicle
brew install xquartz
brew install ffmpeg
gifType=".gif"
movType=".m4v"
timestring=`date +"%m_%d_%Y"`
capturePath=~/Desktop/ScreenRecording_$timestring
displayDialog () {
@drunknbass
drunknbass / EnvConfig.swift
Created June 17, 2016 04:05
Firebase stage + Prod config
import Foundation
@objc(EnvConfig)
class EnvConfig: NSObject {
#if ENVConfigStaging
class var isProduction:Bool {
return false
}
@drunknbass
drunknbass / Foundation.py
Created January 13, 2016 00:57 — forked from steventroughtonsmith/Foundation.py
UIKit+UIFoundation & Foundation for Pythonista - autoconverted from SDK tbd (includes non-public SPI)
# coding: utf-8
from objc_util import *
NSAKDeserializer = ObjCClass('NSAKDeserializer')
NSAKDeserializerStream = ObjCClass('NSAKDeserializerStream')
NSAKSerializer = ObjCClass('NSAKSerializer')
NSAKSerializerStream = ObjCClass('NSAKSerializerStream')
NSAbstractLayoutGuide = ObjCClass('NSAbstractLayoutGuide')
NSAddressCheckingResult = ObjCClass('NSAddressCheckingResult')
NSAffineTransform = ObjCClass('NSAffineTransform')
@drunknbass
drunknbass / ios_imperatives_for_approval.md
Last active August 28, 2015 20:04 — forked from nickbauman/ios_imperatives_for_approval.md
Condensed iOS Human Interface Guidelines, formulated as imperatives.

Condensed iOS Human Interface Guidelines

Imperatives for AppStore approval

For iPhone app developers. Emphasis on getting the fastest app store approval. Everything stated as suggestion made into an imperative. When "violating" these imperatives, you can check for yourself what the caveats are. Generally speaking, deviating will more likely cause you app to be hung up in approval.

You can read this entire document in about 20 minutes. This is faster than reading and understanding the entire Human Interface Guidelines.

Overview

@drunknbass
drunknbass / docker-machine.rb
Last active August 29, 2015 14:16
/usr/local/Library/Formula/docker-machine.rb
class DockerMachine < Formula
homepage "https://github.com/docker/machine"
version "0.0.2"
## Version 0.0.2 doesn't build, so we install a downloaded binary
## unless this is a HEAD build.
# url "https://github.com/docker/machine/archive/0.0.2.tar.gz"
# sha1 "adcc7128abdbaae60ba3c58d6485df939c7e5510"
url "https://github.com/docker/machine/releases/download/0.0.2/machine_darwin_amd64"
sha1 "daecfe7e86a7c6a8dc444e03c5527f9db36b9c3e"
head "https://github.com/docker/machine.git"
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
installer -pkg /Packages/OSInstall.mpkg -target /Volumes/MyDisk