This file contains hidden or 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 <Foundation/Foundation.h> | |
#import <AddressBook/AddressBook.h> | |
@class SBApplication, CKConversation; | |
__attribute__((visibility("hidden"))) | |
@interface BioLockdownController : NSObject | |
+ (BioLockdownController *)sharedController; |
This file contains hidden or 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
print "--" | |
print "Renaming Hooks for Current Procedure..." | |
print "Message from rpetrich: Please use this for good and not evil" | |
print "--" | |
doc = Document.getCurrentDocument() | |
def procedure_end(seg, proc): | |
addr = proc.getEntryPoint() | |
currentIndex = seg.getProcedureIndexAtAddress(addr) |
This file contains hidden or 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/sh | |
if [[ $# == 0 ]]; then | |
ssh tunnel "bash -c \"symbolicate /var/mobile/Library/Logs/CrashReporter/LatestCrash.*\"" | |
else | |
if [[ $1 == /* ]]; then | |
ssh tunnel "symbolicate '$1'" | |
else | |
ssh tunnel "bash -c \"symbolicate /var/mobile/Library/Logs/CrashReporter/LatestCrash-$1.*\"" | |
fi | |
fi |
This file contains hidden or 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 <Foundation/Foundation.h> | |
#import <AddressBook/AddressBook.h> | |
@class SBApplication; | |
__attribute__((visibility("hidden"))) | |
@interface BioLockdownController : NSObject | |
+ (BioLockdownController *)sharedController; |
This file contains hidden or 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 | |
# Basic iOS Crash Debugging Helper Script by rpetrich | |
apt-get install jp.ashikase.symbolicate grep curl coreutils coreutils-bin > /dev/null | |
if [ $? -ne 0 ]; then | |
echo "Unable to install debug script dependencies!" >&2 | |
echo "Run script as root and make sure you have exited Cydia." >&2 | |
exit 1 | |
fi | |
IFS='|' read -r code url < <( | |
( |
This file contains hidden or 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 | |
( | |
for ARG in "$@" | |
do | |
tail -n+6 "$ARG" | awk '{print $2}' | |
done | |
) | sort | uniq -c | egrep ^\\s+$# | awk '{print $2}' |
This file contains hidden or 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/sh | |
# git-ticket-show by Ryan Petrich | |
if [ -e $1 ] ; then | |
echo "usage: git ticket-show <ticket>" | |
else | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
REVLIST=`git rev-list HEAD` | |
echo "Merge status of ticket $1 relative to $BRANCH:" | |
git log --all --no-merges --format=%H --grep="$1[:+]" | \ | |
while read commit |
This file contains hidden or 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
#!/usr/bin/env ruby | |
ARGV.each do |filename| | |
puts "// #{filename}" | |
myfile = File.open(filename, "r") | |
result = "" | |
myfile.each_byte { |byte| result = result + "," + byte.to_s } | |
myfile.close | |
safename = filename.gsub(".", "_").gsub("/","$").gsub("@","$") | |
puts "static const char #{safename}[] = { " + result[1..-1] +" };"; | |
# puts "const size_t #{safename}_size = sizeof(#{safename});"; |
This file contains hidden or 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/sh | |
if [[ $# == 0 ]]; then | |
SYM_PATH="/var/mobile/Library/Logs/CrashReporter/LatestCrash.plist" | |
else | |
if [[ $1 == /* ]]; then | |
SYM_PATH="$1" | |
else | |
SYM_PATH="/var/mobile/Library/Logs/CrashReporter/LatestCrash-$1.plist" | |
fi | |
fi |
This file contains hidden or 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
function makePair(left, right) { | |
return { left: left, right: right }; | |
} | |
window["add"] = function(a, b) { | |
var pair = makePair(a, b); | |
return t.left + t.right; | |
} |