This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COIN_NAME="Bitcoin Faith" | |
COIN_TICKER="BTF" | |
EXCHANGE="gate.io" | |
DEPOSIT_URL=("https://gate.io/myaccount/deposit/BTF" -H "Cookie: __cfduid=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; captcha=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; market_title=BTC; captcha_reg=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; show_zero_funds=0; notice=Regarding"%"20the"%"20LLT"%"20and"%"20SNET"%"20Swap; total_fund=1; lasturl="%"2Fmyaccount"%"2Fdeposit"%"2FBTF; nav_index=2; uid=11111111; nickname=XXXXXXXX; pver=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" -H "Cache-Control: max-age=0") | |
DEPOSIT_DISABLED="<p>BTF deposit is disabled" | |
function push { | |
curl -s -F "token=<TOKEN>" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSString *)osc_introspectiveDescription | |
{ | |
// Loop through our superclasses until we hit NSObject | |
NSMutableArray *propertyList = [NSMutableArray array]; | |
NSMutableArray *ivarList = [NSMutableArray array]; | |
Class subclass = [self class]; | |
while (subclass != [NSObject class]) | |
{ | |
unsigned int propertyCount; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <objc/runtime.h> | |
@implementation AVPlayerItem(oscahie) | |
+ (void)load | |
{ | |
Method origMethod = class_getInstanceMethod([self class], NSSelectorFromString(@"dealloc")); | |
Method patchMethod = class_getInstanceMethod([self class], @selector(swizzledDealloc)); | |
method_exchangeImplementations(origMethod, patchMethod); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A super quick & dirty shell script to monitor the status of the Apple Online Store for any country. | |
# It does so by checking the HTTP status code returned upon requesting the main page (503 when it's down). | |
# When the store comes back online you get alerted through the speaker, in case you were sleeping :) | |
# You could probably easily change that to send an email or whatever instead. | |
APPLE_STORE_URL=http://store.apple.com/nl/buy-iphone/iphone6 | |
STATUS=503 |