Skip to content

Instantly share code, notes, and snippets.

View kezzico's full-sized avatar

Lee Irvine kezzico

View GitHub Profile
#!/bin/bash
set -e
projectname="<YOUR_PROJECT_NAME>"
projectpath="`pwd`/$projectname.xcodeproj"
workspace="$projectname.xcworkspace"
schemename="$projectname"
provisionprofile="iOS Team Provisioning Profile: 68WTNC8XPF.co.kezzi.$projectname"
plistPath="$projectname/Info.plist"
@kezzico
kezzico / Token.swift
Created August 29, 2018 22:23
Token Storage in Swift
//
// Token.swift
//
// Created by Lee Irvine on 8/29/18.
// Copyright © 2018 kezzi.co. All rights reserved.
//
import Foundation
import Security
//
// HomeIndicatorConstraint.swift
//
// Created by Lee Irvine on 1/7/19.
// Copyright © 2019 kezzi.co. All rights reserved.
//
import UIKit
class HomeIndicatorConstraint: NSLayoutConstraint {
@kezzico
kezzico / git.md
Last active July 30, 2019 21:12
Git cheat sheet

##GET LATEST

// Pull all branches. Sync local git with remote 'origin'

`git pull origin`

// Get latest from a single branch

`git fetch origin <branch>`
@kezzico
kezzico / TabBar Center Button
Last active September 2, 2020 00:27
Add button to center of UITabBarController
//
// CenterButtonTabBarController.swift
// FashionCritic
//
// Created by Lee Irvine on 1/5/18.
// Copyright © 2018 kezzi.co. All rights reserved.
//
import UIKit
@kezzico
kezzico / sh
Created January 25, 2021 20:11
Automated Love2D packaging
#!/bin/bash
srcdir=$1
event=$2
filename=$3
tgtdir="/home/pi/love-arcade"
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
html, body{
padding: 0px; margin: 0px;
font-family: helvetica, sans-serif, arial;
#!/bin/bash
# convert any audio file to Animoog format
# usage: script.sh <source.m4a> <sample start> <sample length>
src="$1"
samplerate=44100
start=$2
#!/bin/bash
# stream.normalize <source> [output]
# prepares multiple video sources for concatenation
if [[ -z "$2" ]]; then
output="${1%%.*}.normalize.${1##*.}"
else
output="$2"
fi
@kezzico
kezzico / gist:355a3ebf880c1c5e58302acadd2ef916
Last active May 15, 2023 17:28
Firebase Dynamic Links + AppBoy
#import "Appboy-iOS-SDK/AppboyKit.h"
#import "ReactNativeConfig.h"
#import "SEGAppboyIntegrationFactory.h"
#import <RNFBDynamicLinks/RNFBDynamicLinksAppDelegateInterceptor.h>
static DeeplinkPusher *_shared = nil;
@implementation DeeplinkPusher
+ (DeeplinkPusher *) shared {