View hookAllMethods.sh
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/sh | |
getStringFormat() { | |
SED_REPALCE[0]='s/HBLogDebug(id)/HBLogDebug(@"Returns: %@", r)/g; ' | |
SED_REPALCE[1]='s/HBLogDebug(int)/HBLogDebug(@"Returns: %d", r)/g; ' | |
SED_REPALCE[2]='s/HBLogDebug(unsigned int)/HBLogDebug(@"Returns: %u", r)/g; ' | |
SED_REPALCE[3]='s/HBLogDebug(double)/HBLogDebug(@"Returns: %f", r)/g; ' | |
SED_REPALCE[4]='s/HBLogDebug(unsigned char)/HBLogDebug(@"Returns: %c", r)/g; ' | |
SED_REPALCE[5]='s/HBLogDebug(unichar)/HBLogDebug(@"Returns: %C", r)/g; ' | |
SED_REPALCE[6]='s/HBLogDebug(long long)/HBLogDebug(@"Returns: %lld", r)/g; ' | |
SED_REPALCE[7]='s/HBLogDebug(BOOL)/HBLogDebug(@"Returns: %@", r ? @"YES" : @"NO")/g; ' |
View downloadiOSHeaders.py
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
from lxml import html | |
import requests | |
import re | |
import os | |
def createDir(path): | |
if not os.path.exists(path): os.makedirs(path) | |
# Settings | |
iosVersion = "12.1" |
View airdropSorter.scpt
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
property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format" | |
property QUARANTINE_KEY : "59" | |
property GET_QUARANTINE_COMMAND_START : "ls -l -@ '" | |
property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'" | |
on adding folder items to this_folder after receiving added_items | |
repeat with i from 1 to length of added_items | |
set current_item to item i of added_items | |
set quarantine_type to getQuarantineType(POSIX path of current_item) |
View generateTestUsers.sh
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/sh | |
APP_TOKEN="FACEBOOK APP TOKEN" | |
APP_ID="FACEBOOK APP ID" | |
NUMBER_OF_USERS=500 | |
createTestUser () { | |
curl -s -i -X POST \ | |
-d "=" \ |