Skip to content

Instantly share code, notes, and snippets.

View yeahdongcn's full-sized avatar

R0CKSTAR yeahdongcn

View GitHub Profile
@yeahdongcn
yeahdongcn / gist:2fd11947523e70140b3184b8cf60db00
Created October 15, 2016 05:52
Shell: Create path if it doesn't exsit
# Create path if it doesn't exsit
mkdir -p ${DIR}
@yeahdongcn
yeahdongcn / gist:794b0836dbfc189b2231
Created April 3, 2015 01:58
iPhone Simulator Location
/Users/{YOUR NAME}/Library/Developer/CoreSimulator/Devices/{Identifier}/data/Containers
@yeahdongcn
yeahdongcn / gist:f8752327032101bc8ea4
Created January 21, 2015 13:20
Update git submodules
git submodule foreach git pull origin master
@yeahdongcn
yeahdongcn / system.log
Created September 21, 2014 15:30
Log system out
tail -f /var/log/system.log
@yeahdongcn
yeahdongcn / gist:42ca950a32c1f04aedfa
Created July 25, 2014 06:12
Install JDK7 on 10.10
To install it follow these steps:
Download JDK 7
Open the DMG
Run pkgutil --expand "/Volumes/JDK 7 Update 60/JDK 7 Update 60.pkg" "/tmp/JDK 7 Update 60.unpkg"
Go to /tmp/JDK 7 Update 60.unpkg
Open the Distribution file in your favorite editor (I recommend (Sublime Text)[http://www.sublimetext.com])
Change the function pm_install_check() to always return true
Run pkgutil --flatten "/tmp/JDK 7 Update 60.unpkg" "/tmp/JDK 7 Update 60.pkg"
Run open "/tmp/JDK 7 Update 60.pkg"
@yeahdongcn
yeahdongcn / podfile add forked repo with submodules
Last active August 29, 2015 14:02
How to get submodule cloned using a forked pod
pod 'Bypass', :git => 'https://github.com/yeahdongcn/bypass-ios.git', :submodules => true
pod install --verbose --no-repo-update
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
tail -f /var/log/system.log
$ git tag -a 0.0.1 -m "Tag release 0.0.1"
$ git push --tags