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 <UIKit/UIKit.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <substrate.h> | |
extern CGColorRef UIKBGetNamedColor(CFStringRef gradientName); | |
#define kColorSettingsPath @"/var/mobile/Library/Preferences/com.rpetrich.kbthemer.colors.plist" | |
static NSMutableDictionary *colorSettings; | |
static CFMutableDictionaryRef namedColors; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>1 1 1 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>PragmataPro - 13.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>1 1 1 1</string> |
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 | |
for FILE in $1/*.lproj | |
do | |
BASENAME=$(basename "$FILE") | |
ln -s "$2/$BASENAME" "$3/$BASENAME" | |
done |
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 | |
diff -u --show-function-line=^@interface --label="$1" --label="$2" <( class-dump-z -RbSz "$1" ) <( class-dump-z -RbSz "$2" ) | GREP_COLOR='1;32' grep --color=always -e '^\(\+.*$\)\?' | GREP_COLOR='1;31' grep --color=always -e '^\(\-.*$\)\?' | less -FRSX |
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 <UIKit/UIKit.h> | |
#define UI_MAIN_SCREEN_SCALE() ([UIScreen instancesRespondToSelector:@selector(scale)] ? [UIScreen mainScreen].scale : 1.0f) | |
static inline CGFloat CGFloatRoundToScale(CGFloat value, CGFloat scale) | |
{ | |
return roundf(value * scale) / scale; | |
} | |
static inline CGFloat CGFloatRoundToMainScreen(CGFloat value) |
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 | |
MobileSafari_PID=$(ps x | grep "MobileSafari" | grep -v grep | awk '{ print $1 }') | |
if [ "$MobileSafari_PID" == "" ]; then | |
echo "Mobile Safari.app must be running in the Simulator to enable the remote inspector." | |
else | |
cat <<EOM | gdb -quiet > /dev/null | |
attach $MobileSafari_PID | |
p (void *)[WebView _enableRemoteInspector] |
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
nic 1 | |
prompt TARGET "BulletinBoard Provider Display Identifier" "com.apple.mobilesafari" | |
dir BulletinBoard | |
dir layout | |
dir layout/Library | |
dir layout/Library/WeeLoader | |
dir layout/Library/WeeLoader/BulletinBoardPlugins | |
dir layout/Library/WeeLoader/BulletinBoardPlugins/@@PROJECTNAME@@.bundle | |
file 366 BulletinBoard/BulletinBoard.h | |
#import <Foundation/Foundation.h> |
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; | |
} |
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
#!/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});"; |