This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| - (void)presentViewControllerFromVisibleViewController:(UIViewController *)viewControllerToPresent | |
| { | |
| if ([self isKindOfClass:[UINavigationController class]]) { | |
| UINavigationController *navController = (UINavigationController *)self; | |
| [navController.topViewController presentViewControllerFromVisibleViewController:viewControllerToPresent]; | |
| } else if (self.presentedViewController) { | |
| [self.presentedViewController presentViewControllerFromVisibleViewController:viewControllerToPresent]; | |
| } else { | |
| [self presentModalViewController:viewControllerToPresent animated:YES]; | |
| } |
| # The Script | |
| ```sh | |
| git log v2.1.0...v2.1.1 --pretty=format:'<li> <a href="http://github.com/jerel/<project>/commit/%H">view commit •</a> %s</li> ' --reverse | grep "#changelog" | |
| ``` | |
| # A git alias for the command: |
| # install class-dump | |
| brew install class-dump | |
| # dump the frameworks you're interested in | |
| class-dump -H -o UIKit /Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/Frameworks/UIKit.framework | |
| class-dump -H -o SpringBoardUI /Applications/Xcode5-DP.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/System/Library/PrivateFrameworks/SpringBoardUI.framework |
| # put this in your .bash_profile | |
| if [ $ITERM_SESSION_ID ]; then | |
| export PROMPT_COMMAND='echo -ne "\033];${PWD##*/}\007"; ':"$PROMPT_COMMAND"; | |
| fi | |
| # Piece-by-Piece Explanation: | |
| # the if condition makes sure we only screw with $PROMPT_COMMAND if we're in an iTerm environment | |
| # iTerm happens to give each session a unique $ITERM_SESSION_ID we can use, $ITERM_PROFILE is an option too | |
| # the $PROMPT_COMMAND environment variable is executed every time a command is run | |
| # see: ss64.com/bash/syntax-prompt.html |
| # | |
| # Uncrustify Configuration File | |
| # File Created With UncrustifyX 0.2 (140) | |
| # | |
| # Alignment | |
| # --------- | |
| ## Alignment |
| // | |
| // Created by tdimson on 8/15/12. | |
| #import <QuartzCore/QuartzCore.h> | |
| #import "SFSConfettiScreen.h" | |
| @implementation SFSConfettiScreen { | |
| __weak CAEmitterLayer *_confettiEmitter; | |
| CGFloat _decayAmount; |
| #import <Foundation/Foundation.h> | |
| #import <objc/message.h> | |
| extern id fake_msgSend(id, SEL, int) __attribute__((noinline)); | |
| @interface Foo : NSObject | |
| - (id)foo:(int)n; | |
| @end |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/sh | |
| git filter-branch --env-filter ' | |
| an="$GIT_AUTHOR_NAME" | |
| am="$GIT_AUTHOR_EMAIL" | |
| cn="$GIT_COMMITTER_NAME" | |
| cm="$GIT_COMMITTER_EMAIL" | |
| if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ] |