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
| // iOS 16+ | |
| // _CDBatterySaver class doesn't exist on versions higher than 16.0 | |
| @interface _PMLowPowerMode : NSObject | |
| + (id)sharedInstance; | |
| - (NSInteger)getPowerMode; | |
| - (void)setPowerMode:(NSInteger)arg0 fromSource:(id)arg1; | |
| - (void)setPowerMode:(NSInteger)arg0 fromSource:(id)arg1 withCompletion:(id)arg2; // Don't use if completion is nil, callback requires non null parameter | |
| @end |
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 bash | |
| set -e | |
| PROJECT="$1" | |
| if [ -z "$PROJECT" ]; then | |
| echo "Usage: $0 <project>" | |
| exit 1 | |
| 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
| // ==UserScript== | |
| // @name Google Translate - 2022 | |
| // @namespace https://greasyfork.org/users/906463-coffeegrind123 | |
| // @homepageURL https://gist.github.com/coffeegrind123/8ca2c7e700aca3341c71da8d612f6130 | |
| // @supportURL https://greasyfork.org/scripts/443947-google-translate-2022 | |
| // @match http*://*/* | |
| // @exclude http*://*.google.*/* | |
| // @grant GM_registerMenuCommand | |
| // @noframes | |
| // @version 2.4 |
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
| curl -LO https://github.com/sbingner/llvm-project/releases/download/v10.0.0-1/linux-ios-arm64e-clang-toolchain.tar.lzma | |
| TMP=$(mktemp -d) | |
| tar --lzma -xvf linux-ios-arm64e-clang-toolchain.tar.lzma -C $TMP | |
| pushd $TMP/ios-arm64e-clang-toolchain/bin | |
| find * ! -name clang-10 -and ! -name ldid -and ! -name ld64 -exec mv {} arm64-apple-darwin14-{} \; | |
| find * -xtype l -exec sh -c "readlink {} | xargs -I{LINK} ln -f -s arm64-apple-darwin14-{LINK} {}" \; | |
| popd | |
| mkdir -p $THEOS/toolchain/linux/iphone | |
| mv $TMP/ios-arm64e-clang-toolchain/* $THEOS/toolchain/linux/iphone/ | |
| rm -rf $TMP linux-ios-arm64e-clang-toolchain.tar.lzma |
NewerOlder