Skip to content

Instantly share code, notes, and snippets.

View szehnder's full-sized avatar

Sean Zehnder szehnder

  • Samsung Ads
  • Lexington, KY
View GitHub Profile
@szehnder
szehnder / k3s-longhorn.md
Created October 13, 2022 19:57
K3s + Longhorn

USER=smz; PASSWORD=blablabl3ck!; echo "${USER}:$(openssl passwd -stdin -apr1 <<< ${PASSWORD})" >> auth

@szehnder
szehnder / DataProvider.swift
Last active December 23, 2019 12:13
Pattern for async callback between a view controller and a dataprovider singleton
typealias ServiceResponse = (NSDictionary?, NSError?) -> Void
class DataProvider: NSObject {
var client:AFHTTPRequestOperationManager?
let LOGIN_URL = "/api/v1/login"
class var sharedInstance:DataProvider {
struct Singleton {
static let instance = DataProvider()
@szehnder
szehnder / 0_reuse_code.js
Created July 28, 2014 20:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@szehnder
szehnder / Gemfile
Created November 8, 2011 23:06 — forked from mariovisic/Gemfile
gem 'apn_sender', :require => 'apn'
gem 'daemons'