Skip to content

Instantly share code, notes, and snippets.

View interstateone's full-sized avatar
👋

Brandon Evans interstateone

👋
View GitHub Profile
@interstateone
interstateone / macOS-big-sur-iso.sh
Last active June 23, 2020 03:41 — forked from jamieparfet/macOS-mojave-iso.sh
Create an ISO from the mojave installer app
#!/bin/bash
# This assumes that the ~10GB Big Sur installer is in the /Applications folder.
hdiutil create -o /tmp/bigsur.cdr -size 10g -layout SPUD -fs HFS+J
hdiutil attach /tmp/bigsur.cdr.dmg -noverify -mountpoint /Volumes/InstallBigSur
# You need to manually erase the new volume in Disk Utility otherwise the next command will fail
# The use of /Volumes/untitled is deliberate, because that's what its name will be after the preceding commands
# Not sure why that is
sudo /Applications/Install\ macOS\ Beta.app/Contents/Resources/createinstallmedia --volume /Volumes/untitled
@interstateone
interstateone / uiappearance-selector.md
Last active April 7, 2020 14:39 — forked from mattt/uiappearance-selector.md
A list of methods and properties conforming to `UIAppearance` as of iOS 13.4

Generate the list yourself:

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./*     | \
  sed 's/NS_AVAILABLE_IOS(.*)//g'     | \
  sed 's/NS_DEPRECATED_IOS(.*)//g'    | \
  sed 's/API_AVAILABLE(.*)//g'        | \
  sed 's/API_UNAVAILABLE(.*)//g'      | \
 sed 's/UI_APPEARANCE_SELECTOR//g' | \
@interstateone
interstateone / gist:dbe67fa6f6a68b107e3b4078cb6cc9bb
Created June 7, 2019 20:26 — forked from henning-jh/*.swift
Sign In with Apple: create button
import AuthenticationServices
func createButton() {
let authorizationButton = ASAuthorizationAppleIDButton()
authorizationButton.addTarget(self, action:
#selector(handleAuthorizationAppleIDButtonPress),
for: .touchUpInside)
myView.addSubview(authorizationButton)
}