Skip to content

Instantly share code, notes, and snippets.


Chandu chandrahasan1

View GitHub Profile

Setting up github and bitbucket on the same computer

Github will be the main account and bitbucket the secondary.

Create SSH Keys

ssh-keygen -t rsa -C "github email"

Enter passphrase when prompted. If you see an option to save the passphrase in your keychain, do it for an easier life.

View PSPDFUIKitMainThreadGuard.m
#import <objc/runtime.h>
#import <objc/message.h>
#import <QuartzCore/QuartzCore.h>
#define PROPERTY(propName) NSStringFromSelector(@selector(propName))
// A better assert. NSAssert is too runtime dependant, and assert() doesn't log.
// Accepts both:
// - PSPDFAssert(x > 0);
You can’t perform that action at this time.