Skip to content

Instantly share code, notes, and snippets.

View larryaasen's full-sized avatar

Larry Aasen larryaasen

View GitHub Profile
@larryaasen
larryaasen / gist:6793425
Created October 2, 2013 13:06
The TizenSDK Chrome Web Simulator local storage path on Mac OS X
The TizenSDK Chrome Web Simulator local storage path on Mac OS X:
"~/tizen-2.1b-ws/.CustomProfile/YWHGnuGkjz/Default/Local Storage"
@larryaasen
larryaasen / gist:5935736
Created July 5, 2013 16:40
Filter out Dalvikvm from Android LogCat
tag:^(?!dalvikvm)
@larryaasen
larryaasen / gist:5751983
Created June 10, 2013 20:28
Display Android log in terminal
$ /Users/Shared/android-sdk/platform-tools/adb devices -l
$ /Users/Shared/android-sdk/platform-tools/adb -s <android_device> logcat
@larryaasen
larryaasen / gist:5726437
Created June 7, 2013 01:17
Squashing many commits (11) into one.
git rebase -i HEAD~11
@larryaasen
larryaasen / gist:5721199
Created June 6, 2013 12:39
Git Squashing
Say your bug fix branch is called bugfix then on the master branch issue the following command:
$ git merge --squash bugfix
$ git commit -m 'fix bug'
This will take all the commits from the bugfix branch, squash them into 1 commit and then merge it with your master branch
@larryaasen
larryaasen / gist:5635612
Created May 23, 2013 12:06
To clean up remote references to deleted branches, run 'git remote prune origin'.
$ git remote prune origin
@larryaasen
larryaasen / gist:5583748
Created May 15, 2013 12:45
Creating a screenshot of the Mac OS X 10.8.3 login screen.
sudo screen -m -d bash -c "sleep 20; screencapture /Users/larryaasen/Desktop/loginscreen.png"
@larryaasen
larryaasen / gist:5535522
Created May 7, 2013 19:43
Installing CocoaPods from the command line.
# 1. Install CocoaPods from the command line in the Terminal app on your Mac.
$ sudo gem install cocoapods
$ pod setup
@larryaasen
larryaasen / gist:5501941
Created May 2, 2013 12:41
Changing the folder of screenshots on Mac OS X.
defaults write com.apple.screencapture location ~/Screenshots
killall SystemUIServer
@larryaasen
larryaasen / gist:5403964
Created April 17, 2013 12:48
UIDevice+LAExtras - vibrate the device and get the OS name and version.
//
// UIDevice+LAExtras.h
// Konugo
//
// Created by Larry Aasen on 3/26/13.
//
//
#import <UIKit/UIKit.h>