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
import argparse, re | |
# Arg Parser | |
parser = argparse.ArgumentParser(description='Prints well-formatted version of supplied CSV file to STDOUT.') | |
parser.add_argument('filename', metavar='FILE', type=str, | |
help='File to convert.') | |
parser.add_argument('-s', '--separator', dest='separator', type=str, default='|', | |
help="Character to separate fields. Default: '|' (pipe).") | |
# Args |
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
alias gl="git log --graph --color --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(cyan)%ci%C(reset) %C(yellow)(%cr)%C(reset) %C(red)%cn%C(reset)%C(bold green)%d%C(reset)%n'' %C(black)%s%C(reset)'" |
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
Download script and source it in your .bashrc or .bash_profile | |
http://apple.stackexchange.com/a/55886 |
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
tb_is_git_dirty() { | |
git_status="$(git status 2> /dev/null)" | |
if [[ ${git_status} =~ "nothing to commit" ]]; then | |
return 0 | |
else | |
return 1 | |
fi | |
} | |
__tb_git_status() { | |
git_status="$(git status 2> /dev/null)" |
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
$ brew install -v /usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56.rb --with-phpdbg | |
==> Installing php56 from homebrew/homebrew-php | |
Error: phpdbg is not supported for this version of PHP |
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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
brew update | |
brew upgrade | |
brew tap homebrew/dupes | |
brew tap homebrew/versions | |
brew tap homebrew/homebrew-php | |
brew install php55 --with-phpdbg |
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
$ pwd | |
/Users/tboyce12/Downloads/foo | |
$ xcodebuild -scheme foo -sdk iphoneos BUILD_DIR=$(pwd)/build &> build.log | |
$ ios-deploy -v -d -b build/Debug-iphoneos/foo.app &> deploy.log |
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
#import "FileChangeObserver.h" | |
#undef Assert | |
#define Assert(COND) { if (!(COND)) { raise( SIGINT ) ; } } | |
@interface FileChangeObserver () | |
@property ( nonatomic, readonly ) int kqueue ; | |
@property ( nonatomic ) enum FileChangeNotificationType typeMask ; | |
@end |