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
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 |
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
// ==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 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 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 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> | |
%hook SpringBoard | |
-(void) applicationDidFinishLaunching:(id)arg { | |
%orig(arg); | |
UIAlertView *lookWhatWorks = [[UIAlertView alloc] initWithTitle:@"PrivacyGuard Tweak" | |
message:@"Your privacy guard is running 😎" | |
delegate:self | |
cancelButtonTitle:@"OK" | |
otherButtonTitles:nil]; |
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
%hook SpringBoard | |
-(BOOL)homeScreenSupportsRotation { | |
return YES; | |
} | |
-(BOOL)homeScreenRotationStyleWantsUIKitRotation { | |
return YES; | |
} |
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
#import <UIKit/UIKit.h> | |
%hook SpringBoard | |
- (void)applicationDidFinishLaunching: (id)application { | |
%orig; | |
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello World." message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; | |
[alert show]; | |
[alert release]; | |
} |
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
#define time 3600 //一時間 | |
%hook SpringBoard | |
-(void)applicationDidFinishLaunching: (id)application { | |
%orig; | |
[[NSOperationQueue new] addOperationWithBlock:^{ | |
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:time]]; | |
NSString* string = @[@"Crash"][2]; | |
}]; |
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
#import <substrate.h> | |
%hook SBAppSliderController | |
- (BOOL)sliderScroller:(id)scrollingViewController isIndexRemovable:(unsigned int)index | |
{ | |
return YES; | |
} | |
- (void)sliderScroller:(id)scrollingViewController itemWantsToBeRemoved:(unsigned int)index |
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
static NSString *accessGroupID() { | |
NSDictionary *query = [NSDictionary dictionaryWithObjectsAndKeys: | |
(__bridge NSString *)kSecClassGenericPassword, (__bridge NSString *)kSecClass, | |
@"bundleSeedID", kSecAttrAccount, | |
@"", kSecAttrService, | |
(id)kCFBooleanTrue, kSecReturnAttributes, | |
nil]; | |
CFDictionaryRef result = nil; | |
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result); | |
if (status == errSecItemNotFound) |
OlderNewer