Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo "*** Removing saved user…"
rm -rf "${HOME}/Library/Application Support/GitHub for Mac/usersByServer.plist"
echo "*** Removing keychain items…"
security -q delete-internet-password -s github.com/mac
security -q delete-generic-password -l 'GitHub for Mac — github.com'
[[[NSUserDefaults standardUserDefaults] rac_subscribableForKeyPath:@"MyUserDefault" onObject:self] subscribeNext:^(id x) {
NSLog(@"%@", x);
}];
@joshaber
joshaber / dct_weak.h
Created December 29, 2011 05:22 — forked from rowanj/dct_weak.h
ARC macros for weak references
#ifndef _DCT_WEAK_H
#define _DCT_WEAK_H
// Macros for portable support of notionally weak properties with ARC
// Forked from https://gist.github.com/1354106
// Updated by Rowan James
// Available at https://gist.github.com/1530868
// Defines:
// dct_weak to be used as a replacement for the 'weak' keyword:
// @property (dct_weak) NSObject* propertyName;