Skip to content

Instantly share code, notes, and snippets.

View yeahdongcn's full-sized avatar

R0CKSTAR yeahdongcn

View GitHub Profile
@yeahdongcn
yeahdongcn / uncrustify.cfg
Created July 1, 2013 02:32
My Uncrustify Configuration File
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
@yeahdongcn
yeahdongcn / Info.plist
Created July 2, 2013 07:57
iPhone Simulator Capture.bundle for higher version
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>10J869</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>iPhone Simulator Capture</string>
$ git tag -a 0.0.1 -m "Tag release 0.0.1"
$ git push --tags
tail -f /var/log/system.log
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
pod install --verbose --no-repo-update
@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
@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 / system.log
Created September 21, 2014 15:30
Log system out
tail -f /var/log/system.log
@yeahdongcn
yeahdongcn / gist:f8752327032101bc8ea4
Created January 21, 2015 13:20
Update git submodules
git submodule foreach git pull origin master