Skip to content

Instantly share code, notes, and snippets.

View kezzico's full-sized avatar

Lee Irvine kezzico

View GitHub Profile
@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

Print all Provisioning Profiles

This script is useful for debugging code signing related build issues. Sometimes numerous provisioning profiles can interfere with each other. By identifying provisioning profiles present on the system, an engineer can deduce where a problem/conflict may occur.

The script prints out the filename of all provisioning profiles on the system along with the actual provisioning profiles name.

Sample output:

4d6f17a7-945c-4e56-a838-feac55a09521.mobileprovision >> CS429UH28N.com.choco.bar
58c1f8c3-1c43-4ae7-8d97-6f1d579ba5e1.mobileprovision >> 5Y399WZH5J.com.multivision.presto
#!/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 / 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