This file contains hidden or 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
| #!/bin/bash | |
| repo_path=$(git rev-parse --git-dir) | |
| if [ $? -ne 0 ]; then | |
| exit $? | |
| fi | |
| if [ -d "${repo_path}/rebase-merge" ]; then | |
| git rebase --abort |
This file contains hidden or 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
| ========================================================================================================== | |
| #### category: UICTContentSizeCategoryAccessibilityXXXL | |
| fontsize: UIFontTextStyleTitle1 58.000000 | |
| fontsize: UIFontTextStyleTitle2 56.000000 | |
| fontsize: UIFontTextStyleTitle3 55.000000 | |
| fontsize: UIFontTextStyleBody 53.000000 | |
| fontsize: UIFontTextStyleHeadline 53.000000 | |
| fontsize: UIFontTextStyleCallout 51.000000 | |
| fontsize: UIFontTextStyleSubheadline 49.000000 | |
| fontsize: UIFontTextStyleFootnote 44.000000 |
This file contains hidden or 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
| # xcode symbolicate | |
| function symbolicate() { | |
| XCODE_PATH=/Applications/Xcode.app | |
| DEVELOPER_DIR=$XCODE_PATH/Contents/Developer $XCODE_PATH/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/Current/Resources/symbolicatecrash $1 2>/dev/null | |
| } |
This file contains hidden or 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
| # Example: git-merged-diff development master | |
| function git-merged-diff() { | |
| ONE_BRANCHES=$(git branch -a --merged $1 | grep -v $1 | sed 's:remotes/origin/::g' | ack -io '(?<=^ [ *])[a-z/_-]+' | sort | uniq) | |
| TWO_BRANCHES=$(git branch -a --merged $2 | grep -v $2 | grep -v $1 | sed 's:remotes/origin/::g' | ack -io '(?<=^ [ *])[a-z/_-]+' | sort | uniq) | |
| echo "==== Branches currently in $2 but not in $1:" | |
| comm -13 <(echo $ONE_BRANCHES) <(echo $TWO_BRANCHES) | |
| } |
This file contains hidden or 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
| + (NSDateFormatter *)serverDateTimeFormatter | |
| { | |
| static NSDateFormatter *formatter; | |
| static dispatch_once_t onceToken; | |
| dispatch_once(&onceToken, ^{ | |
| formatter = [NSDateFormatter new]; | |
| formatter.dateFormat = @"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"; | |
| formatter.timeZone = [NSTimeZone timeZoneForSecondsFromGMT:0]; | |
| formatter.calendar = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; |
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # An example hook script to check the commit log message. | |
| # Called by "git commit" with one argument, the name of the file | |
| # that has the commit message. The hook should exit with non-zero | |
| # status after issuing an appropriate message if it wants to stop the | |
| # commit. The hook is allowed to edit the commit message file. | |
| # | |
| # To enable this hook, rename this file to "commit-msg". |