Skip to content

Instantly share code, notes, and snippets.


Felix Krause KrauseFx

View GitHub Profile
View history.txt
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
JosephDuffy /
Last active Mar 16, 2017
A simple fish script to provide tab completion of fastlane lanes
# Author: Joseph Duffy
# License: MIT
# Notes: Place this script in `~/.config/fish/completions/` to enable Fastlane lane completion
# URL:
# This function was taken from
function __fish_prog_needs_subcommand
set cmd (commandline -opc)
if [ (count $cmd) -eq 1 -a $cmd[1] = 'fastlane' ]
return 0
keeth / release.rb
Created Aug 10, 2016
Programmatically/script release an iOS app with Spaceship
View release.rb
#!/usr/bin/env ruby
require 'spaceship'
app_id = ARGV.shift
if app_id.nil?
abort('Usage: release.rb com.mycompany.myapp')
ashfurrow / Fresh macOS
Last active Sep 6, 2020
All the stuff I do on a fresh macOS Installation
View Fresh macOS

Apps to install from macOS App Store:

  • Pastebot
  • GIF Brewery
  • Slack
  • Keynote/Pages/Numbers
  • 1Password
  • OmniFocus 2
  • Airmail 3
  • iA Writer
cabeca / simulator_populator
Created Sep 23, 2014
This script removes and recreates all simulators in Xcode 6.
View simulator_populator
#!/usr/bin/env ruby
device_types_output = `xcrun simctl list devicetypes`
device_types = device_types_output.scan /(.*) \((.*)\)/
runtimes_output = `xcrun simctl list runtimes`
runtimes = runtimes_output.scan /(.*) \(.*\) \(([^)]+)\)$/
devices_output = `xcrun simctl list devices`
devices = devices_output.scan /\s\s\s\s(.*) \(([^)]+)\) (.*)/
KrauseFx / get_identifier_to_be_uploaded.rb
Created Sep 2, 2014
iTunesConnect: Receive the app identifier of the next app to be uploaded (Waiting for Upload status), since you can not specify which app you want to deploy next (
View get_identifier_to_be_uploaded.rb
# encoding: utf-8
require 'pty'
require 'pry'
command = "xcrun -sdk iphoneos Validation -online -upload -verbose notHere.ipa"
# upload it now:
output = ''
chriseidhof /
Created Jun 28, 2014
MobileOptimized Presentation

[fit] Functional Programming in

[fit] Swift

Chris Eidhof - - June 28, Minsk

csfrancis /
Last active Jun 16, 2020
Dump an MRI call stack from gdb
# Updated for Ruby 2.3
string_t = None
def get_rstring(addr):
s = addr.cast(string_t.pointer())
if s['basic']['flags'] & (1 << 13):
return s['as']['heap']['ptr'].string()
return s['as']['ary'].string()
matthiasplappert / gist:9493050
Last active Aug 29, 2015
QuickLook Debugging for `UIView`
View gist:9493050
@interface UIView (MPAdditions)
@implementation UIView (MPAdditions)
- (id)debugQuickLookObject {
if (self.bounds.size.width < 0.0f || self.bounds.size.height < 0.0f) {
return nil;
steipete / DevelopmentEnviromentDetector.m
Last active Oct 30, 2019
Detect if you're currently running a development version or an App Store/Ad Hoc version.
View DevelopmentEnviromentDetector.m
static BOOL PSPDFIsDevelopmentBuild(void) {
return YES;
static BOOL isDevelopment = NO;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
// There is no provisioning profile in AppStore Apps.
NSData *data = [NSData dataWithContentsOfFile:[NSBundle.mainBundle pathForResource:@"embedded" ofType:@"mobileprovision"]];
if (data) {
You can’t perform that action at this time.