Skip to content

Instantly share code, notes, and snippets.


Shilo Shilo

View GitHub Profile
shpakovski /
Last active Dec 15, 2015
How to hide iOS Simulator when you run Xcode Tests.
  1. Save Tests.scpt to the folder ~/.Xcode/
  2. Open the folder ~/.Xcode/ in
  3. Perform the command chmod +x ./Tests.scpt in
  4. Open Xcode ➭ Behaviors ➭ Testing Succeeds
  5. Choose ~/.Xcode/Tests.scpt in the Run popup
  6. Open Xcode ➭ Behaviors ➭ Testing Fails and repeat
Shilo / NSString+XML.h
Last active Dec 22, 2015
Customizable string XML parser for NSString, NSMutableString, NSAttributedString, and NSMutableAttributedString.
View NSString+XML.h
// NSString+XML.h
// Customizable string XML parser for NSString, NSMutableString, NSAttributedString, and NSMutableAttributedString.
// Created by Shilo White on 8/31/13.
// Copyright (c) 2013 XIDA Design & Technik. All rights reserved.
#import <Foundation/Foundation.h>
Shilo / Perfect_Convo_With_Boss.txt
Created Apr 14, 2016
Perfect Conversation with Mr. Boss, AKA Benjamin.
View Perfect_Convo_With_Boss.txt
Shilo: Benjamin! Benjamin! Benjamin! Benjamin! Benjamin! Benjamin! Boss! Boss! Boss! Leader! Leader! Leader! Master! Master! Master! Ben!
Ben! Ben! Ben! Benni! Benni! Benni! Benni! Benji! Benji! Benj! Benj! Benj!
Benjamin: What!?
Shilo: Hi! (Giggling and running out of the room)
View gist:e470c28b24127f78795f
create dummy images
curl -L "[01-10]" -o image_#1.png
get page headers
curl --head
send parameters to page
curl.exe -L -G "" --data-urlencode "text=DESIGN6 daily backup started"
send formdata & files to page
Shilo /
Last active Jun 12, 2016
OS X Useful Terminal Commands
//Disable app nap system-wide (Requires Restart)
defaults write NSGlobalDomain NSAppSleepDisabled -bool YES
//Finder show hidden files
defaults write AppleShowAllFiles YES; killall Finder
//Desktop hide icons
defaults write CreateDesktop false; killall Finder
//TextEdit open new document by default (Requires restart of TextEdit)
Shilo /
Created Jul 16, 2016
Terminal command to append "@2x" to file names inside current directory.
for file in *; do mv "$file" "${file%.*}@2x.${file##*.}"; done
jamztang / LICENSE
Created Jan 6, 2012
Creating a placeholder UIImage dynamically with color
Copyright (c) 2013 Jamz Tang <>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
Shilo / NavigationController.m
Last active Jul 16, 2016
iOS - Dynamically load navigation bar title image with interpolation. How to use: Set navigation title as "{image_name_here}"
View NavigationController.m
- (void)viewDidLoad {
[super viewDidLoad];
[self loadNavigationBarTitleImage];
- (void)loadNavigationBarTitleImage {
NSString *title = self.navigationItem.title;
NSInteger prefixLength = NAV_TITLE_IMAGE_PREFIX.length;
Shilo /
Created Oct 24, 2013
Bash script command to recursively remove ".svn" directory from currently directory.
rm -rf `find . -type d -name .svn`
Shilo /
Created Sep 6, 2016
Terminal command to add svn ignores via ".gitignore" file.
svn propset svn:ignore -RF .gitignore .