I hereby claim:
- I am nickdowell on github.
- I am nickdowell (https://keybase.io/nickdowell) on keybase.
- I have a public key ASCVNmhBpxVhpMEx_FXUvs5_LQy5W9TLiiE3gNjGFzB1lQo
To claim this, I am signing this object:
| #import <dlfcn.h> | |
| #import <mach-o/dyld.h> | |
| #import <mach-o/loader.h> | |
| int main(int argc, char *argv[]) { | |
| NSData *data = [NSData dataWithContentsOfFile:[[NSBundle mainBundle] executablePath]]; | |
| NSData *codeSignatureData = nil; |
| #import <Foundation/Foundation.h> | |
| #import <notify.h> | |
| void test() | |
| { | |
| int notify_token; | |
| notify_register_dispatch("com.apple.springboard.lockstate", ¬ify_token, dispatch_get_main_queue(), ^(int token) { | |
| uint64_t state = UINT64_MAX; | |
| notify_get_state(token, &state); | |
| NSLog(@"com.apple.springboard.lockstate = %llu", state); |
| NSString *getApsEnvironment() | |
| { | |
| NSString *provisioningPath = [[NSBundle mainBundle] pathForResource:@"embedded" ofType:@"mobileprovision"]; | |
| if (!provisioningPath) | |
| return (NSString *)nil; | |
| // NSISOLatin1 keeps the binary wrapper from being parsed as unicode and dropped as invalid | |
| NSScanner *scanner = [NSScanner scannerWithString:[NSString stringWithContentsOfFile:provisioningPath encoding:NSISOLatin1StringEncoding error:NULL]]; | |
| if (![scanner scanUpToString:@"<plist" intoString:nil]) | |
| return (NSString *)nil; |
I hereby claim:
To claim this, I am signing this object:
| CLANG_WARN__DUPLICATE_METHOD_MATCH | |
| 37a38 | |
| > -Wduplicate-method-match | |
| CLANG_WARN__EXIT_TIME_DESTRUCTORS | |
| 37c37 | |
| < -Wno-exit-time-destructors | |
| --- | |
| > -Wexit-time-destructors |
https://opensource.apple.com/releases/
| Year | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 |
|---|---|---|---|---|---|---|---|
| macOS | 10.11 | 10.12 | 10.13 | 10.14 | 10.15 | 11 | 12 |
| iOS | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| Xcode | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| Libc | 1081.1.3 | 1158.50.2 | 1244.50.9 | 1272.250.1 | 1353.100.2 | 1439.141.1 | 1507.100.9 |
| libpthread | 138.10.4 | 218.60.3 | [301.50.1](https://github.com/apple-oss-distributio |
| #!/bin/zsh | |
| set -euxo pipefail | |
| sdk_path=`xcrun -f --sdk iphoneos --show-sdk-path` | |
| plat_path=`xcrun -f --sdk iphoneos --show-sdk-platform-path` | |
| $CLANG_TIDY \ | |
| Sources/MyLibrary/**/*.mm -- \ | |
| -ISources/MyLibrary/include \ |
| $ clang -dM -E -x c++ /dev/null | |
| #define _LP64 1 | |
| #define __AARCH64EL__ 1 | |
| #define __AARCH64_CMODEL_SMALL__ 1 | |
| #define __AARCH64_SIMD__ 1 | |
| #define __APPLE_CC__ 6000 | |
| #define __APPLE__ 1 | |
| #define __ARM64_ARCH_8__ 1 | |
| #define __ARM_64BIT_STATE 1 |
| 10.4 3.1.3 | |
| 10.13 3.19.3 2017-06-27 16:48:08 2b0954060fe10d6de6d479287dd88890f1bef6cc1beca11bc6cdb79f72e2377b | |
| 12.6.8 3.37.0 2021-12-09 01:34:53 9ff244ce0739f8ee52a3e9671adb4ee54c83c640b02e3f9d185fd2f9a179aapl | |
| 13.5 3.42.0 2023-05-16 12:36:15 831d0fb2836b71c9bc51067c49fee4b8f18047814f2ff22d817d25195cf350b0 |
| #include <unordered_map> | |
| class avg_timer | |
| { | |
| public: | |
| avg_timer(const char *name, int batch = 120) : name_(name), batch_(batch) {} | |
| avg_timer(const scope_timer &) = delete; | |
| ~avg_timer() noexcept | |
| { | |
| auto elapsed = std::chrono::steady_clock::now() - start_; |