I hereby claim:
- I am 0xced on github.
- I am 0xced (https://keybase.io/0xced) on keybase.
- I have a public key whose fingerprint is D954 97B0 B156 169F 8008 678B D5E1 5DE9 6AF8 341E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // | |
| // Copyright (c) 2014 Cédric Luthi “0xced” | |
| // | |
| // ./uncruftapidiff https://developer.apple.com/library/prerelease/ios/releasenotes/General/iOS80APIDiffs/index.html iOS8_0APIDiffs.html | |
| // ./uncruftapidiff https://developer.apple.com/library/prerelease/mac/documentation/General/Reference/APIDiffsMacOSX10_10SeedDiff/index.html OSX10_10APIDiffs.html | |
| // | |
| #import <Foundation/Foundation.h> | |
| #import <sysexits.h> |
| --- CF-855.17/CFPropertyList.c 2014-08-15 23:19:37.000000000 +0200 | |
| +++ CF-855.17/CFPropertyList.c 2014-10-01 13:58:11.000000000 +0200 | |
| @@ -27,6 +27,7 @@ | |
| */ | |
| #include <CoreFoundation/CFPropertyList.h> | |
| +#include <CoreFoundation/CFByteOrder.h> | |
| #include <CoreFoundation/CFDate.h> | |
| #include <CoreFoundation/CFNumber.h> | |
| #include <CoreFoundation/CFSet.h> |
| /** | |
| * Add these options to `OTHER_LDFLAGS` if Lookback is not linked to the app. | |
| * -Wl,-U,_GFGetVersion | |
| * -Wl,-U,_OBJC_CLASS_$_GFThumbnailer2 | |
| * -Wl,-U,_OBJC_IVAR_$_GFThumbnailer2._jobs | |
| * -Wl,-U,_OBJC_IVAR_$_GFThumbnailer2._currentJob | |
| */ | |
| #import <AVFoundation/AVFoundation.h> | |
| #import <MediaPlayer/MediaPlayer.h> | |
| #import <dlfcn.h> |
| /** | |
| * Locking then unlocking a device while a movie is playing disables controls autohiding. | |
| * `MPInlineVideoController` registers for the (private) UIApplicationResumedEventsOnlyNotification | |
| * (which is sent between UIApplicationWillEnterForegroundNotification and UIApplicationDidBecomeActiveNotification). | |
| * In its callback (-[MPInlineVideoController _applicationResumedEventsOnly:]) it calls `[self setDisableControlsAutohide:YES]` | |
| * effectively disabling controls autohide. In order to restore the automatic hiding of controls, we call | |
| * setDisableControlsAutohide:NO when UIApplicationDidBecomeActiveNotification is posted. | |
| */ | |
| #import <MediaPlayer/MediaPlayer.h> |
| @implementation MPMoviePlayerViewController | |
| - (void) _moviePlayerViewController_playbackDidFinishNotification:(NSNotification *)notification | |
| { | |
| if (self.presentingViewController.presentedViewController == self) | |
| { | |
| UIViewController *presentingViewController = self.presentingViewController; | |
| if (self->_internal->_wasDisplayedAnimated) | |
| [presentingViewController dismissMoviePlayerViewControllerAnimated]; | |
| else |
| #import <IOKit/graphics/IOGraphicsLib.h> | |
| #import <IOKit/graphics/IOGraphicsTypes.h> | |
| NSString* screenNameForDisplay(CGDirectDisplayID displayID) | |
| { | |
| NSString *screenName = nil; | |
| NSDictionary *deviceInfo = (NSDictionary *)IODisplayCreateInfoDictionary(CGDisplayIOServicePort(displayID), kIODisplayOnlyPreferredName); | |
| NSDictionary *localizedNames = [deviceInfo objectForKey:[NSString stringWithUTF8String:kDisplayProductName]]; |
| #import <Foundation/Foundation.h> | |
| #import <dlfcn.h> | |
| #import <mach/vm_map.h> | |
| #import <mach-o/dyld.h> | |
| #import <mach-o/nlist.h> | |
| #if defined(__i386__) || defined(__x86_64__) |
| #!/bin/bash | |
| cd ~/Library/Application\ Support/MobileSync/Backup | |
| backup=`ls -t1 | sed -n '1p'` # most recent backup | |
| for f in "$backup"/*.mdinfo; do | |
| grep -q "Library/AddressBook/AddressBook.sqlitedb" $f | |
| if [ $? -eq 0 ]; then | |
| addressbook=`basename $f .mdinfo` | |
| cp -v "`pwd`/$backup/$addressbook.mddata" ~/Library/Application\ Support/iPhone\ Simulator/User/Library/AddressBook/AddressBook.sqlitedb | |
| exit $? |