Skip to content

Instantly share code, notes, and snippets.

View jottenlips's full-sized avatar
:octocat:

John Ottenlips Franke jottenlips

:octocat:
View GitHub Profile
@jottenlips
jottenlips / ES6.sublime-build
Last active June 19, 2018 20:15 — forked from therealklanni/ES6.sublime-build
ES6 REPL in Sublime Text
{
"cmd": ["/Users/<username>/.nvm/versions/node/v9.2.0/bin/babel-node $file"],
"shell": true,
"selector": "*.js"
}
@jottenlips
jottenlips / .bash_profile
Last active September 16, 2019 16:15
Alias for deleting archives and derived data.
alias cleanxcode="rm -r ~/Library/Developer/Xcode/DerivedData && rm -r ~/Library/Developer/Xcode/Archives && echo 'xcode cleaned'"
@jottenlips
jottenlips / resetAllSimulators.sh
Created May 1, 2018 13:54 — forked from ZevEisenberg/resetAllSimulators.sh
Reset all iOS simulators with this one weird trick
osascript -e 'tell application "iOS Simulator" to quit'
osascript -e 'tell application "Simulator" to quit'
xcrun simctl erase all
@jottenlips
jottenlips / NSObject+Debounce.h
Last active June 19, 2018 20:13 — forked from berzniz/NSObject+Debounce.h
Debounce method for Objective C
@interface NSObject (Debounce)
- (void)debounce:(SEL)action delay:(NSTimeInterval)delay target:(id)target;
@end
@jottenlips
jottenlips / staticlib.sh
Created June 22, 2018 15:06 — forked from adamgit/gist:3705459
Automatically create cross-platform (simulator + device) static libraries for Objective C / iPhone / iPad
##########################################
#
# c.f. http://stackoverflow.com/questions/3520977/build-fat-static-library-device-simulator-using-xcode-and-sdk-4
#
# Version 2.82
#
# Latest Change:
# - MORE tweaks to get the iOS 10+ and 9- working
# - Support iOS 10+
# - Corrected typo for iOS 1-10+ (thanks @stuikomma)
@jottenlips
jottenlips / brew dependencies
Created July 30, 2018 01:41
Homebrew uninstall/reinstall dependencies
brew list > brew-list.txt
brew uninstall $(cat brew-list.txt)
brew install $(cat brew-list.txt)
@jottenlips
jottenlips / 🏖 lazy_git_push_upstream_README.md
Last active November 26, 2019 17:03
🏖 lazy git push upstream

Tired of doing copy pasta for your new branch?

add these lines to .bashrc .zshrc or .bash_profile

alias branch='git symbolic-ref --short HEAD'

alias upstream='git push --set-upstream origin $(echo $(branch))'
PACKAGE_VERSION=$(cat package.json | grep '"version":' | awk -F: '{ print $2 }' | sed 's/[",]//g' | sed 's/[ ,]//g')
@jottenlips
jottenlips / gitsteal.sh
Last active August 16, 2019 19:36
This is a joke.
git clone $@ && cd `echo $@ | sed "s/.git//g" | sed "s/.*\///g"` && rm -rf .git && git init
@jottenlips
jottenlips / README.md
Last active September 16, 2019 18:54
♺ Opens Circle CI from your git repo.
$ touch circleci.sh
$ vim circleci.sh

i