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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 [enable|disable]" | |
exit 1 | |
fi | |
plistLoc="/private/var/root/Library/Preferences/com.apple.CoreBrightness.plist" | |
currentUserUID=$(dscl . -read /Users/$(whoami)/ GeneratedUID) # Get the GeneratedUID for the current user |
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 | |
# Before running this script: | |
# Find AC_CHECK_FILES([/proc/self/stat]) in configure.ac and comment it out | |
# cd into the fish source directory | |
FLAGS="-stdlib=libc++ -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -target armv7-apple-darwin16 -miphoneos-version-min=8.0.0" | |
PREFIX=$(pwd)"/deb" | |
# Build fish |
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/local/bin/python | |
# Dumping all frameworks requires dsc_extractor, idk where to get it | |
import os, sys, shutil | |
device_ip = 'localhost' | |
device_port = '2222' | |
def dumpTBD(frameworkPath): |
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 urllib, urllib2 | |
def demangle(symbol): | |
r = urllib2.Request('http://demangler.com/raw', urllib.urlencode({'input': symbol})) | |
response = urllib2.urlopen(r) | |
return response.read() | |
def main(): | |
doc = Document.getCurrentDocument() | |
current = doc.getCurrentAddress() |
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 sys | |
from capstone import * | |
if len(sys.argv) < 2: | |
print 'Error: need file name argument' | |
exit() | |
# Read binary input file into an array | |
fileName = sys.argv[1] | |
file = open(fileName, "rb") |
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/xcrun swift | |
import Foundation | |
import Cocoa | |
import AppKit | |
class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate { | |
let statusItem: NSStatusItem = NSStatusBar.systemStatusBar().statusItemWithLength(100) | |
let progressIndicator = NSProgressIndicator() |
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
%hook SpringBoard | |
-(BOOL)homeScreenSupportsRotation { | |
return YES; | |
} | |
-(BOOL)homeScreenRotationStyleWantsUIKitRotation { | |
return YES; | |
} |