Skip to content

Instantly share code, notes, and snippets.

View onmyway133's full-sized avatar
😇
What you don't know is what you haven't learned

Khoa onmyway133

😇
What you don't know is what you haven't learned
View GitHub Profile
@onmyway133
onmyway133 / Install oh-my-zsh
Last active August 29, 2015 14:03
Install oh-my-zsh
curl -L http://install.ohmyz.sh | sh
@onmyway133
onmyway133 / Install rmv
Last active August 29, 2015 14:03
Install rmv
// Install rvm
\curl -sSL https://get.rvm.io | bash -s stable --ruby
// tail of the .zshrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
source $ZSH/oh-my-zsh.sh
// .zlogin
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
@onmyway133
onmyway133 / Install powerline
Last active August 29, 2015 14:03
Install powerline
pip install --user git+git://github.com/Lokaltog/powerline
@onmyway133
onmyway133 / gitignore
Created July 12, 2014 14:54
gitignore
# Xcode
.DS_Store
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
@onmyway133
onmyway133 / Podfile
Created July 12, 2014 14:57
Podfile
platform :ios, '7.0'
target :MyApp, :exclusive => true do
pod 'KVOController'
pod 'CleanTableViewDataSource'
pod 'Mantle', '~> 1.5'
pod 'AFNetworking', '~> 2.2'
pod 'Ono'
pod 'SVProgressHUD', '~> 1.0'
pod 'WYPopoverController', '~> 0.2.0'
@onmyway133
onmyway133 / Crittercism
Created July 15, 2014 05:35
Crittercism
APP_ID="53c4a57bd478bc36a6000012"
API_KEY="0CkEtfMSZ74Gb6qqxcyWVfJv1di4HYND"
SHOW_CONSOLE=1
UPLOAD_SIMULATOR_SYMBOLS=0
source ${SRCROOT}/Pods/CrittercismSDK/CrittercismSDK/dsym_upload.sh
@onmyway133
onmyway133 / gitconfig
Last active August 29, 2015 14:04
gitconfig
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# View the current working tree status using the short format
s = status -s
# Show the diff between the latest commit and the current state
d = !"git diff-index --quiet HEAD -- || clear; git --no-pager diff --patch-with-stat"
// Enable
-fobjc-arc
// Disable
-fno-objc-arc
@onmyway133
onmyway133 / Git tips
Created July 18, 2014 05:24
Git tips
// Find string in all commits
$ git grep stringtofind $(git rev-list --all)
@onmyway133
onmyway133 / Crash reason
Created July 21, 2014 16:02
Crash reason
EXC_BAD_INSTRUCTION Assertion
SIGABRT Exception
EXC_BAD_ACCESS Memory error