Skip to content

Instantly share code, notes, and snippets.

View iMokhles's full-sized avatar
🏠
Working from home

Mokhlas Hussein iMokhles

🏠
Working from home
View GitHub Profile
@iMokhles
iMokhles / gist:40547701704b1f99c38a128a504fd4a4
Created February 27, 2018 16:53
OStoreSN_decrypted.dylib
// الكود المسئول عن عدم التكرار على اي بندل
// بعد فك التشفير
NSString *laptop_bundleIdentifier() {
NSString *origBundleId = @"othman.store.snapchat2";
NSArray *array1 = [NSArray arrayWithObjects:@"othman.store.snapchat", @"com.toyopagroup.picaboo", nil];
for ( int i = 0; i < 2; ++i ){
@iMokhles
iMokhles / gist:8767454b988e6bc573751d9b11f2425a
Created August 17, 2016 19:35 — forked from afrael/gist:2777859
Merging to WAV files in iOS
NSURL *originalFileName = [NSURL alloc];
NSURL *RecordingPath =[NSURL fileURLWithPath:[appDelegate.RecordingPath stringByAppendingPathComponent:
[NSString stringWithFormat:@"RecordingFile.wav"]]];
NSLog(@"LocalRecoding Path :%@",RecordingPath);
originalFileName=RecordingPath;
NSURL *temporaryFileName = [NSURL alloc];
@iMokhles
iMokhles / BioLockdown.h
Created May 24, 2016 00:11 — forked from rpetrich/BioLockdown.h
BioLockdown API
#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>
@class SBApplication, CKConversation;
__attribute__((visibility("hidden")))
@interface BioLockdownController : NSObject
+ (BioLockdownController *)sharedController;
@iMokhles
iMokhles / How to open iOS application from WatchKit
Created April 21, 2015 18:49
is a simple trick to open iOS application and even a page within the application from WatchKit
/*
//
// How to open iOS application using WatchKit
//
// Created by Mokhlas Hussein on 09/04/15.
// Copyright (c) 2015 iMokhles (Mokhlas Hussein). All rights reserved.
//
*/
/******* Within the App Watch Extension *******/
@iMokhles
iMokhles / How to use the old prefs method within sandbox apps
Last active August 29, 2015 14:14
How to use the old prefs method within sandbox apps
static BOOL tweakEnabled = NO;
static void PreferencesChangedCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
system("killall WhatsApp"); // kill app to apply changes ;)
NSDictionary *preferences = [[NSDictionary alloc] initWithContentsOfFile:@"TWEAK_PREFS_PATH"];
tweakEnabled = [preferences[@"tweakEnabled"] boolValue];
}
%ctor {
[[NSNotificationCenter defaultCenter] addObserverForName:UIApplicationDidFinishLaunchingNotification object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *block) {
@iMokhles
iMokhles / CFPreferencesAppSynchronize with ARC and non ARC.xm
Last active August 16, 2020 13:28
How to use CFPreferencesAppSynchronize with ARC and non ARC (iOS8 Tweaks) + CFNotificationCallback (option) Works fine with Sandbox Apps
static BOOL tweakEnBOOL;
#define SETTINGSFILENEW "com.imokhles.Prefs"
#define PREFERENCES_CHANGED_NOTIFICATION "com.imokhles.Prefs.preferences-changed"
// non ARC
static void iMoLoadPreferences() {
CFPreferencesAppSynchronize(CFSTR(SETTINGSFILENEW));
tweakEnBOOL = !CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW)) ? YES : [(id)CFBridgingRelease(CFPreferencesCopyAppValue(CFSTR("Enabled"), CFSTR(SETTINGSFILENEW))) boolValue];
}
@iMokhles
iMokhles / TheosOnCygwin
Last active June 27, 2016 21:27
Change Logs, - First Release - Platform .mk file if you have any quiz just follow me on twitter @iMokhles And mail me : imokhles@imokhles.com
This is my first .mk files to get theos work and compile tweaks through Cygwin,
@iMokhles
iMokhles / README.md
Created September 17, 2012 09:04 — forked from kirb/README.md
Theos on Windows

Theos on Windows

Instructions to follow soon...