Skip to content

Instantly share code, notes, and snippets.

Aaron Alexander drunknbass

Block or report user

Report or block drunknbass

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
drunknbass / toggledarkmode.command
Last active Mar 25, 2020
Toggle dark mode on currently running simulator
View toggledarkmode.command
#! /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"))
exit_cleanly() {
drunknbass / cloudSettings
Created May 27, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
View gist:6bba2c6b787c2426432342b54cbb8ed2
brew install gifsicle
brew install xquartz
brew install ffmpeg
timestring=`date +"%m_%d_%Y"`
displayDialog () {
drunknbass / EnvConfig.swift
Created Jun 17, 2016
Firebase stage + Prod config
View EnvConfig.swift
import Foundation
class EnvConfig: NSObject {
#if ENVConfigStaging
class var isProduction:Bool {
return false
drunknbass /
Created Jan 13, 2016 — forked from steventroughtonsmith/
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 /
Last active Aug 28, 2015 — forked from nickbauman/
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.


drunknbass / docker-machine.rb
Last active Aug 29, 2015
View docker-machine.rb
class DockerMachine < Formula
homepage ""
version "0.0.2"
## Version 0.0.2 doesn't build, so we install a downloaded binary
## unless this is a HEAD build.
# url ""
# sha1 "adcc7128abdbaae60ba3c58d6485df939c7e5510"
url ""
sha1 "daecfe7e86a7c6a8dc444e03c5527f9db36b9c3e"
head ""
# Alot of these configs have been taken from the various places
# on the web, most from here
# Set the colours you can use
View gist:66fecd15cdd8abde9f8c
installer -pkg /Packages/OSInstall.mpkg -target /Volumes/MyDisk
drunknbass / gist:7775421
Created Dec 3, 2013
Pass list to Xcode via command line build (IPA)
View gist:7775421
# Usage:
# cd to dir with xcode.pbxproj and execute.
xcodebuild -scheme "My Scheme" -configuration "Enterprise" GCC_PREPROCESSOR_DEFINITIONS='FOO='$BAR'' archive -archivePath $ARCHIVE_PATH || { echo Enterprise BUILD failed"; exit 1; }
You can’t perform that action at this time.