Skip to content

Instantly share code, notes, and snippets.


Daniel Farrelly jellybeansoup

View GitHub Profile
jellybeansoup /
Last active Jun 23, 2021
Script for Incrementing Version Numbers
# Link: <>
# A command-line script for incrementing build numbers for all known targets in an Xcode project.
# This script has two main goals: firstly, to ensure that all the targets in a project have the
# same CFBundleVersion and CFBundleShortVersionString values. This is because mismatched values
# can cause a warning when submitting to the App Store. Secondly, to ensure that the build number
# is incremented appropriately when git has changes.
jellybeansoup / AppDelegate.swift
Created Jan 23, 2018
Preloading App Data for Screenshots
View AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Handle the actual launch of your application
private func prepareForTestingUI() {
guard let contentsURL = Bundle.main.url(forResource: "UITests", withExtension: "xcappdata")?.appendingPathComponent("AppData") else {
export DEVELOPER_DIR="/Applications/"
for f in "$@"
SRCNAME=$(echo $(basename "${f}"))
SRCPATH=$(echo $(dirname "${f}"))
jellybeansoup / AutoConvert.scpt
Created Feb 15, 2012
Automatic AVI/MKV conversion for iTunes
View AutoConvert.scpt
--Set the location for where your torrents download to
set torrentsLocation to "/Users/Jelly/Torrents"
--Set the location for where HandbrakeCLI lives
set handbrakeLocation to "/Applications/Utilities/HandBrakeCLI"
--Settings up some handlers…
on fileExists(posixFile)
if not (exists posixFile as alias) then return false
on error
return false
jellybeansoup /
Last active Dec 31, 2018
Install Autoconf and Automake on OS X Mountain Lion
# Install autoconf, automake and libtool smoothly on Mac OS X.
# Newer versions of these libraries are available and may work better on OS X
# This script is originally from
export build=~/devtools # or wherever you'd like to build
View TextViewDidChangeSelection.swift
// Exists inside of a scrollview subclass containing an "expanding" textview that lives underneath other content.
private var previousSelection: CGRect?
func textViewDidChangeSelection(_ textView: UITextView) {
guard textView.isFirstResponder else {
var selection = textView.layoutManager.boundingRect(forGlyphRange: textView.selectedRange, in: textView.textContainer).offsetBy(dx: insets.left, dy:
jellybeansoup /
Created May 28, 2013
A shell script to remove duplicates in the "Open With" menu in OS X 10.5 and later.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user

Keybase proof

I hereby claim:

  • I am jellybeansoup on github.
  • I am jellybeansoup ( on keybase.
  • I have a public key whose fingerprint is EEC8 CE91 DF6B 324F C28D ACAA E53E 0BCA FCDB 7881

To claim this, I am signing this object:

jellybeansoup / example.json
Last active Sep 6, 2015
Example JSON for Mobile Couch e65
View example.json
"key": "jellyandbean",
"title": "Jelly and Bean",
"tagline": "A weekly podcast about TV, movies, games and technology.",
"description": "Do you like tech? Games? TV? Movies? Well DANG. We have so much in common already! Jelly and Bean are two super pals who like to talk about all of the aforementioned topics (and more, probably), resulting in a nice little peek into the world of geeks, all in the form of a delicious weekly podcast that can be shoved into your ears thanks to the magic of sound waves!",
"archived": true,
"explicit": false,
"keywords": [
"jelly n bean",
View StaticTablesDataSourceTests.m
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import "StaticTables.h"
@interface StaticTablesDataSourceTests : XCTestCase
@implementation StaticTablesDataSourceTests