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
2011-11-10 16:54:15.051 node[2145:707] -[NSKeyedUnarchiver count]: unrecognized selector sent to instance 0x7fe450499c60 | |
node.js:201 | |
throw e; // process.nextTick error, or 'error' event on first tick | |
^ | |
NSInvalidArgumentException: -[NSKeyedUnarchiver count]: unrecognized selector sent to instance 0x7fe450499c60 | |
at Function.msgSend (/Users/Luke/Projects/Archiver/node_modules/NodObjC/id.js:105:21) | |
at id (/Users/Luke/Projects/Archiver/node_modules/NodObjC/id.js:70:15) | |
at Object.<anonymous> (/Users/Luke/Projects/Archiver/test.js:9:46) | |
at Module._compile (module.js:432:26) |
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 | |
unset CPATH | |
unset C_INCLUDE_PATH | |
unset CPLUS_INCLUDE_PATH | |
unset OBJC_INCLUDE_PATH | |
unset LIBS | |
unset DYLD_FALLBACK_LIBRARY_PATH | |
unset DYLD_FALLBACK_FRAMEWORK_PATH |
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
@class EXApplication : UIApplication { | |
} | |
- tableView:table numberOfRowsInSection:section { | |
return 2; | |
} | |
- tableView:table cellForRowAtIndexPath:index { | |
var cell = [new UITableViewCell initWithStyle:UITableViewCellStyleDefault reuseIdentifier:"cell"]; | |
[cell setText:([index row] == 0 ? "test" : "help")]; |
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 <UIKit/UIKit.h> | |
%hook UIWebBrowserView | |
- (void)webViewDidFinishLoad: (UIWebView *)webView{ | |
//NSLog(@"URL = %@",[webView stringByEvaluatingJavaScriptFromString:@"window.location"]); | |
%log; | |
%orig; | |
} | |
%end |
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
//Require exec from child processes | |
var exec = require('child_process').exec; | |
//List the packages | |
exec("apt-get --just-print upgrade", function (error, stdout, stderr) { | |
//Package list | |
var packages = {} | |
//Split at each line | |
stdout = stdout.split("\n"); | |
//for each line |
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 | |
sbalert -t "sbalert" -m"This is a test alert." -d"Button 1" -a"Button 2" -o "Cancel" | |
result=$?; | |
if [[ "$result" == "0" ]]; then | |
echo "Button 1 was pressed" | |
elif [[ "$result" == "1" ]]; then | |
echo "Button 2 was pressed" |
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 SBAwayController : NSObject | |
+ (id)sharedAwayController; | |
- (void)unlockWithSound:(BOOL)arg1; | |
- (BOOL)handleMenuButtonDoubleTap; | |
- (BOOL)isPasswordProtected; | |
@end | |
static BOOL bypass = NO; | |
%hook SBAwayController |
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
Telesphoreo on OS X | |
======= | |
### Run saurik's Telesphoreo repo on OS X | |
Prerequisites | |
------------ | |
* [Xcode][http://itunes.apple.com/us/app/xcode/id448457090?mt=12] | |
* [Homebrew][http://mxcl.github.com/homebrew/] |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.innoying; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; |
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 the request module, used to pull the manual from pico's site | |
var request = require('request'); | |
//Request the manual | |
request('https://picoctf.com/problems/manual.txt', function (error, response, body) { | |
//Make sure we were actaully successful | |
if (!error && response.statusCode == 200) { | |
console.log(crypt(body, parseInt(process.argv[2]))); |