Skip to content

Instantly share code, notes, and snippets.

View shepting's full-sized avatar

Steven Hepting shepting

View GitHub Profile
@shepting
shepting / new_machine.sh
Created January 11, 2021 23:26
New machine Gist.
#!/bin/zsh
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Setup mackup
brew install mackup
# Configure mackup
cat > ~/.mackup.cfg <<- EOM
[storage]
@shepting
shepting / buck_rpath.patch
Created March 29, 2019 18:29
iOS 12 Buck rpath Patch
wrap
ios12 rpath buck patch
diff --git a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java
index 57bb4eb810..93e7e93d1e 100644
--- a/src/com/facebook/buck/features/apple/project/ProjectGenerator.java
+++ b/src/com/facebook/buck/features/apple/project/ProjectGenerator.java
@@ -199,6 +199,7 @@ import java.util.Collections;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.HashSet;
@shepting
shepting / bash_command_timer.sh
Created February 6, 2019 22:51
Bash Command Timer
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# Copyright (C) 2014 Chuan Ji <[email protected]> #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); #
# you may not use this file except in compliance with the License. #
# You may obtain a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
What do Uber, Facebook, and Airbnb all have in common?
They use the Buck build system to manage millions of lines of code, across hundreds of
iOS engineers, building many iOS apps.
Here how Buck can make builds faster (smartly optimizing build hierarchies), consistent
(hermetic build descriptions), and efficient (caching everything on the server except
what code has changed locally).
Although this build system is used by the largest iOS organizations in the world, the
This is the secret design for the Apple Car that Jony Ive has been hiding for the last 5 years. It runs Swift on
Linux-powered hardware to power the vehicle itself, Swift on the iPhone app to control the vehicle, and Swift on
the Server to display vehicle fleet and app metrics.
This talk is a high-powered jump into Swift & Hardware running on the Raspberry Pi with a secondary focus of
sharing model code between 3 different Swift 'apps' running across server, phone, and microcomputer.
Listeners will learn:
- how to connect and app to a Raspberry Pi over bluetooth
- controlling motors with switches, relay boards, and SwiftyGPIO
@shepting
shepting / JSONParsing.swift
Created June 26, 2017 18:45
Swift Networking for RandomUser.API
//
// JSONParsing.swift
// DemoPersonViewer
//
// Created by Steven Hepting on 6/26/17.
// Copyright © 2017 Hepting. All rights reserved.
//
import Foundation
@shepting
shepting / NetworkJSON.swift
Last active June 26, 2017 17:18
Simple Swift Network Parsing
//
// Networking.swift
// DemoPersonViewer
//
// Created by Steven Hepting on 6/23/17.
// Copyright © 2017 Hepting. All rights reserved.
//
import Foundation

Keybase proof

I hereby claim:

  • I am shepting on github.
  • I am stevenhepting (https://keybase.io/stevenhepting) on keybase.
  • I have a public key whose fingerprint is 009A 0C95 8411 C796 443F 2F35 5FDD 6DA6 B9C9 1940

To claim this, I am signing this object:

@shepting
shepting / SwiftTypes.swift
Created September 23, 2016 14:26
LLDB Type Lookup Swift
import SwiftShims
struct UnsafePointer<Pointee> : Strideable, Hashable, _Pointer {
typealias Distance = Swift.Int
let _rawValue: Builtin.RawPointer
init(_ _rawValue: Builtin.RawPointer)
init(_ from: Swift.OpaquePointer)
init?(_ from: Swift.OpaquePointer?)
init?(bitPattern: Swift.Int)
init?(bitPattern: Swift.UInt)
init(_ other: Swift.UnsafePointer<Pointee>)
@shepting
shepting / dynamic_libraries.log
Created July 2, 2016 23:16
Simulator Dynamic Libraries
2016-07-02 14:37:59.661 LinkAndLoad[15250:19961985] Libraries loaded: 124
2016-07-02 14:37:59.662 LinkAndLoad[15250:19961985] Image count: 0.52ms
2016-07-02 14:37:59.662 LinkAndLoad[15250:19961985] Read last file: 0.40ms
2016-07-02 14:37:59.665 LinkAndLoad[15250:19961985] Launch launch library details:
Opened stream at: 2016-07-02 21:37:41 +0000
Added: 0x109c86000 164126720 /Users/shepting/Library/Developer/CoreSimulator/Devices/25098D4E-25AE-4957-9A36-C0541D1DC426/data/Containers/Bundle/Application/0BE633E7-D9E5-45A1-9F87-FF804CB3F87E/LinkAndLoad.app/LinkAndLoad
Added: 0x109d00000 4459593728 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libBacktraceRecording.dylib
Added: 0x109d0e000 4459651072 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
Added: 0x109d1a000 4459700224 /Applicati