create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| These two files should help you to import passwords from mac OS X keychains to 1password. | |
| Assumptions: | |
| 1) You have some experience with scripting/are a power-user. These scripts worked for me | |
| but they haven't been extensively tested and if they don't work, you're on your own! | |
| Please read this whole document before starting this process. If any of it seems | |
| incomprehensible/frightening/over your head please do not use these scripts. You will | |
| probably do something Very Bad and I wouldn't want that. | |
| 2) You have ruby 1.9.2 installed on your machine. This comes as standard with Lion, previous | |
| versions of OS X may have earlier versions of ruby, which *may* work, but then again, they |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| // The issue: the Twitter API returns so called 'tweet entities' for each tweet. These entities contain the ranges | |
| // of hashtags, mentions and urls in the tweet. In iOS, emoji's have a length of 2. The Twitter API uses 1 as length | |
| // for the emoji's. So when you try to change the foreground color attribute in the range Twitter gives, you change | |
| // the foreground color of a part of the emoji. The affected thread will freeze and ultimately crash. | |
| // This code fixes the issue with emoji's, but does not yet work with composed character sequences longer than 2. | |
| // Feel free to fork/comment. | |
| NSRange range; // The old, corrupted range that doesn't take emoji's in account | |
| NSString *string; // The string |
| expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) ) |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| @interface DDDelegateProxy : NSProxy | |
| + (id)proxyForDelegate:(id)delegate conformingToProtocol:(Protocol *)protocol; | |
| @property (weak, readonly) id delegate; | |
| @property (strong, readonly) Protocol *protocol; | |
| /*! | |
| * Set a default return value for a method on the delegate's protocol. | |
| * \param value This must be a block that returns the default value. Bad Things will happen if it's not. |
| # Path to your oh-my-fish. | |
| set fish_path $HOME/.oh-my-fish | |
| set fish_plugins rvm bundler brew rake rails localhost objc autojump | |
| set fish_theme idan | |
| # Load oh-my-fish cofiguration. | |
| . $fish_path/oh-my-fish.fish | |
| /// Observes a run loop to detect any stalling or blocking that occurs. | |
| /// | |
| /// This class is thread-safe. | |
| @interface GHRunLoopWatchdog : NSObject | |
| /// Initializes the receiver to watch the specified run loop, using a default | |
| /// stalling threshold. | |
| - (id)initWithRunLoop:(CFRunLoopRef)runLoop; | |
| /// Initializes the receiver to detect when the specified run loop blocks for |