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
static OSStatus | |
SSLVerifySignedServerKeyExchange(SSLContext *ctx, bool isRsa, SSLBuffer signedParams, | |
uint8_t *signature, UInt16 signatureLen) | |
{ | |
SSLBuffer hashCtx; | |
OSStatus err = _SSLVerifySignedServerKeyExchangeWithHashCtx(ctx, isRsa, signedParams, | |
signature, signatureLen, &hashCtx); | |
SSLFreeBuffer(hashCtx); | |
return err; | |
} |
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
[[[TCRACSocket connectTo:@"localhost" port:1236] selectMany:^id<RACSubscribable>(id x) { | |
return [x lines]; | |
}] subscribeNext:^(id x) { | |
self.text.text = x; | |
} error:^(NSError *error) { | |
NSLog(@"Failure: %@", error); | |
exit(0); | |
}]; |
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
// Assume that there is a -(TCTask*)load method on these objects | |
-(void)fillTrackPool { | |
[[SPSession sharedSession] load].then(^(SPSession *sess) { | |
return sess.userPlaylists.load; | |
}).then(^(SPPlaylistContainer *container) ^{ | |
NSMutableArray *playlists = [NSMutableArray array]; | |
[playlists addObject:sess.starredPlaylist]; | |
[playlists addObject:sess.inboxPlaylist]; |
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
@echo off | |
color 04 | |
title .app to .ipa | |
cd >nul | |
set /p h=what is the name of the .app file: | |
md Payload\%h% | |
copy %h% Payload\%h% | |
echo. | |
echo. | |
echo *********************************************** |
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
@interface Base58Encoder : NSObject { | |
} | |
+ (NSString *)base58EncodedValue:(long long)num; | |
@end |