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
| private function processFile() { | |
| // The final response to send back to the browser | |
| $response = array(); | |
| // Get the post value for file (we're passing the name of the file here) | |
| // And make sure you check your routines for checking if this is valid etc | |
| $file = $_POST['file'] | |
| // DISK_ROOT is defined in the project | |
| $base_path = DISK_ROOT . '/app/cache/uploads/'; |
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
| private function createManifest( $ipa_url, $bundle_id, $bundle_version, $title ) { | |
| $xml = '<?xml version="1.0" encoding="UTF-8"' . urldecode( urlencode('?') . urlencode('>') ) . ' | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>items</key> | |
| <array> | |
| <dict> | |
| <key>assets</key> |
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 | |
| # Getting Variables | |
| PLIST_BUDDY=/usr/libexec/PlistBuddy | |
| BUILT_PRODUCT=$(ls -d build/*iphone*/*app | head -1) | |
| PRODUCT_BASENAME=$(basename "$BUILT_PRODUCT") | |
| APPLICATION_NAME=${PRODUCT_BASENAME%.app} | |
| INFO_PLIST="$BUILT_PRODUCT"/Info.plist |
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>CFBundleAllowMixedLocalizations</key> | |
| <true/> | |
| <key>CFBundleDevelopmentRegion</key> | |
| <string>English</string> | |
| <key>CFBundleExecutable</key> | |
| <string>applet</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
| let params = (new URL(window.location)).searchParams; | |
| let name = params.get("v"); | |
| window.location.href = `youtube://${name}`; |
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
| var totalForkCount; | |
| var curForkCount=0; | |
| var errorForkArray = new Array(); | |
| function initProcess(){ | |
| var user = window.location.pathname.split('/')[1]; | |
| var pageNo = 1; | |
| var hrefArray = new Array(); | |
| while(hrefArray.length % 30 == 0){ | |
| var resp = sendSyncAjax("https://github.com/"+user+"?tab=repositories&page="+pageNo); |
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
| # Script assumes it's running in a folder with all these files | |
| IPA="ipa_to_resign.ipa" | |
| PROVISION="my_enterprise_provision_profile.mobileprovision" | |
| CERTIFICATE="iPhone Distribution: My Organization, Inc." # must be in keychain | |
| # Unzip the IPA & delete existing codesigning | |
| unzip -q "$IPA" | |
| rm -rf Payload/*.app/_CodeSignature Payload/*.app/CodeResources | |
| # Copy the new Provision Profile |
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
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root" | |
| exit 1 | |
| fi | |
| echo "Usage: bash signer.sh ipaname.ipa" | |
| if [ ! -f /usr/bin/ldid ] || [ ! -f /usr/bin/zip ] || [ ! -f /usr/bin/unzip ]; then | |
| echo "***You need "'zip'", "'unzip,'" and "'Link Identity Editor (ldid)'" installed from Cydia to begin***" | |
| echo "Exiting, one or more of the required programs is missing" | |
| exit |
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 | |
| # Use -gt 1 to consume two arguments per pass in the loop (e.g. each | |
| # argument has a corresponding value to go with it). | |
| # Use -gt 0 to consume one or more arguments per pass in the loop (e.g. | |
| # some arguments don't have a corresponding value to go with it such | |
| # as in the --default example). | |
| # note: if this is set to -gt 0 the /etc/hosts part is not recognized ( may be a bug ) | |
| while [[ $# -gt 1 ]] | |
| do | |
| key="$1" |
NewerOlder