This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void dispatch_async_on_main_queue(dispatch_block_t block); | |
/* | |
* Submits a block for asynchronous execution on the main queue (main thread). | |
*/ | |
void dispatch_async_on_main_queue(dispatch_block_t block) | |
{ | |
dispatch_async(dispatch_get_main_queue(), block); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.Finder AppleShowAllFiles YES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change the Mac OS X Screen Capture Folder | |
$ defaults write com.apple.screencapture location ~/Screenshots | |
$ killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On Mac OS X Mountain Lion with Xcode 4.6 use this line to compile Ruby 1.9.3: | |
$ rvm install 1.9.3 --with-gcc=gcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remember to run this comment before running ssh-add | |
$ eval `ssh-agent` | |
Agent pid 22828 | |
$ ssh-add -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIDevice+LAExtras.h | |
// Konugo | |
// | |
// Created by Larry Aasen on 3/26/13. | |
// | |
// | |
#import <UIKit/UIKit.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.screencapture location ~/Screenshots | |
killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install CocoaPods from the command line in the Terminal app on your Mac. | |
$ sudo gem install cocoapods | |
$ pod setup | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo screen -m -d bash -c "sleep 20; screencapture /Users/larryaasen/Desktop/loginscreen.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git remote prune origin |
OlderNewer