Skip to content

Instantly share code, notes, and snippets.

View Pitsko's full-sized avatar

Andrei Pitsko Pitsko

View GitHub Profile
xcrun simctl list | awk -F "[()]" '{ for (i=2; i<NF; i+=2) print $i }' | grep '^[-A-Z0-9]*$' | xargs -I uuid xcrun simctl erase uuid
@Pitsko
Pitsko / icon_overlay.sh
Last active January 17, 2018 12:04
ios icon overlay script
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}"`
build=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}"`
export PATH=$PATH:/usr/local/bin
function addOverlayInfo() {
income_icon_name=$1
outcome_icon_name=$2
echo "addOverlayInfo with income ${income_icon_name} and outcoming ${outcome_icon_name}"
@inailuy
inailuy / nothing
Created March 13, 2013 21:24
NSNULL nil NULL Nil
NULL (void *)0 literal null value for C pointers
nil (id)0 literal null value for Objective-C objects
Nil (Class)0 literal null value for Objective-C classes
NSNull [NSNull null] singleton object used to represent null