start new:
tmux
start new with session name:
tmux new -s myname
- (BOOL)isNetworkActivityIndicatorVisible { | |
return _activityCount > 0; | |
} | |
- (void)incrementActivityCount { | |
[self willChangeValueForKey:@"activityCount"]; | |
OSAtomicIncrement32((int32_t*)&_activityCount); | |
[self didChangeValueForKey:@"activityCount"]; | |
} |
#import <Foundation/Foundation.h> | |
@interface A: NSObject | |
@end | |
@implementation A | |
void pileOfPoo(id self, SEL _cmd) { | |
NSLog(@"💩"); | |
} |
#import <objc/runtime.h> | |
#import <stdlib.h> | |
// declare some of the Objective-C runtime's private parts where we can see them | |
typedef struct _NXMapTable NXMapTable; | |
extern NXMapTable *gdb_objc_realized_classes; | |
extern void *NXMapInsert(NXMapTable *table, const void *key, const void *value); | |
@implementation NSObject (Poser) |
#define MIN_PASTE(A,B) A##B | |
#define MIN_IMPL(A,B,L) ({ __typeof__(A) MIN_PASTE(__a,L) = (A); __typeof__(B) MIN_PASTE(__b,L) = (B); MIN_PASTE(__a,L) < MIN_PASTE(__b,L) ? MIN_PASTE(__a,L) : MIN_PASTE(__b,L); }) | |
#define MIN(A,B) MIN_IMPL(A,B,__COUNTER__) |
#!/bin/sh | |
## tmbo.sh -- my attempt at posting from the command line | |
## tmbo: lnk, twitter: @oogali | |
## | |
BASE_URL=thismight.be/offensive | |
TMBO_CONFIG=${HOME}/.tmbo | |
TMPPATH=/tmp | |
usage() { | |
echo "$0 <options> <image to upload> [filename]" |