-
mach_portal: bug-tracker
-
extra_recipe: post, bug tracker
-
ota: part 1, part 2, part 3, bug tracker
-
triple_fetch: bug tracker
-
async_wake: bug tracker
-
Phoenix: pdf
-
ziVA: GitHub
-
Pegasus: [pdf](http://i
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
class Python < Formula | |
desc "Interpreted, interactive, object-oriented programming language" | |
homepage "https://www.python.org/" | |
url "https://www.python.org/ftp/python/3.8.6/Python-3.8.6.tar.xz" | |
sha256 "a9e0b79d27aa056eb9cce8d63a427b5f9bab1465dee3f942dcfdb25a82f4ab8a" | |
head "https://github.com/python/cpython.git" | |
license "Python-2.0" | |
revision 1 | |
bottle do |
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
/* How to Hook with Logos | |
Hooks are written with syntax similar to that of an Objective-C @implementation. | |
You don't need to #include <substrate.h>, it will be done automatically, as will | |
the generation of a class list and an automatic constructor. | |
%hook ClassName | |
// Hooking a class method | |
+ (id)sharedInstance { |
#Loading Tweaks in the Simulator
With the latest updates to the simulator, this turns out to be pretty simple:
You need to be using kirb/theos
In order not to require MobileSubstrate to be loaded and your tweak to be compiled for i386/x86_64, add
In your makefile:
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int addi(int a, int b) { | |
return a + b; | |
} | |
char *adds(char *a, char *b) { | |
char *res = malloc(strlen(a) + strlen(b) + 1); |
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
To get the background I use _UICreateScreenUIImage(); | |
Here's the declaration: | |
OBJC_EXTERN UIImage *_UICreateScreenUIImage(void) NS_RETURNS_RETAINED; | |
Specifically I hook SBBackLightController. Here is the bare bones of what I use: | |
%hook SBBacklightController | |
- (void)animateBacklightToFactor:(CGFloat)factor duration:(double)duration source:(int)source completion:(void (^)(void))completion { | |
if (factor < 0.1) { | |
UIImage *currentBackground = _UICreateScreenUIImage(); |
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
//SpringBoard | |
-(void)_reloadDemoAndDebuggingDefaultsAndCapabilities{ | |
//..Blah blah, setting stuff up, etc.., etc... | |
// Control Centre gesture | |
SBOffscreenSwipeGestureRecognizer *gesture = [[SBOffscreenSwipeGestureRecognizer alloc] initForOffscreenEdge:0x4]; | |
[gesture setTypes:0x40]; | |
[gesture setShouldUseUIKitHeuristics:YES]; |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
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
- (void)setupiPodPlayer; | |
{ | |
if (!self.ipodPlayer) { | |
self.ipodPlayer = [MPMusicPlayerController iPodMusicPlayer]; | |
// Register for music player notifications | |
NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter]; | |
[notificationCenter addObserver:self | |
selector:@selector(handleNowPlayingItemChanged:) |
NewerOlder