See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| <?xml version="1.0" encoding="UTF-8"?> | |
| <gpx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.topografix.com/GPX/1/1" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd" version="1.1" creator="Open GPX Tracker for iOS"> | |
| <wpt lat="40.762468446233115" lon="-73.99090283852468"> | |
| <time>2019-12-06T14:19:25Z</time> | |
| <name>09:19:25</name> | |
| <desc>Dec 6, 2019 at 09:19:25</desc> | |
| </wpt> | |
| <wpt lat="40.80559910750484" lon="-73.95810627601767"> | |
| <time>2019-12-06T14:19:29Z</time> | |
| <name>09:19:29</name> |
| import UIKit | |
| import ObjectiveC.runtime | |
| // MARK: - IOKit | |
| @objc private protocol IOHIDEvent: NSObjectProtocol {} | |
| private struct IOHIDDigitizerEventMask: OptionSet { | |
| let rawValue: UInt32 | |
| init(rawValue: UInt32) { self.rawValue = rawValue } |
| Whenever I try using Frida from the official repo https://build.frida.re I kept getting the following errors after which my device panics and restarts: | |
| default 15:46:47.251624 +0530 kernel AMFI: '/private/var/tmp/frida-D8kjW6.dylib' has no CMS blob? | |
| default 15:46:47.251817 +0530 kernel AMFI: '/private/var/tmp/frida-D8kjW6.dylib': Unrecoverable CT signature issue, bailing out. | |
| Looks like codesigning/entitlements issue. Here are the steps I followed to get Frida Running on a jailbroken iOS 12 device | |
| Downloads Latest version of Frida from https://github.com/frida/frida/releases. In my case it was frida-server-12.4.0-ios-arm64.xz. | |
| xz -d frida-server-12.4.0-ios-arm64.xz | |
| scp frida-server-12.4.0-ios-arm64 root@<ios-device-ip>:/usr/bin/frida-server |
| #include <opencv2/opencv.hpp> | |
| #include <chrono> | |
| using namespace std; | |
| typedef std::chrono::high_resolution_clock Clock; | |
| void threadCallback(GpuMat &imS, GpuMat &imT, int count) | |
| { | |
| std::cout << "Start Thread = " << std::this_thread::get_id() << std::endl; | |
| GpuMat imR = GpuMat(imS.size().height - imT.size().height + 1, |
| // | |
| // UserDefaults.swift | |
| // | |
| // Created by Shaps Benkau on 24/05/2018. | |
| // Copyright © 2018 152percent Ltd. All rights reserved. | |
| // | |
| import Foundation | |
| #if os(iOS) |
| typedef struct __CFUserNotification *CFUserNotificationRef; | |
| FOUNDATION_EXTERN CFUserNotificationRef CFUserNotificationCreate ( CFAllocatorRef allocator, CFTimeInterval timeout, CFOptionFlags flags, SInt32 *error, CFDictionaryRef dictionary ); | |
| FOUNDATION_EXTERN SInt32 CFUserNotificationReceiveResponse ( CFUserNotificationRef userNotification, CFTimeInterval timeout, CFOptionFlags *responseFlags ); | |
| FOUNDATION_EXTERN CFDictionaryRef CFUserNotificationGetResponseDictionary ( CFUserNotificationRef userNotification ); | |
| //官方使用例子 | |
| SInt32 CFUserNotificationDisplayNotice(CFTimeInterval timeout, CFOptionFlags flags, CFURLRef iconURL, CFURLRef soundURL, CFURLRef localizationURL, CFStringRef alertHeader, CFStringRef alertMessage, CFStringRef defaultButtonTitle) { | |
| CHECK_FOR_FORK(); | |
| CFUserNotificationRef userNotification; | |
| SInt32 retval = ERR_SUCCESS; | |
| CFMutableDictionaryRef dict = CFDictionaryCreateMutable(kCFAllocatorSystemDefault, 0, &kCFCopyStringDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); |
| // | |
| // DisplayLink.swift | |
| // MetalMac | |
| // | |
| // Created by Jose Canepa on 8/18/16. | |
| // Copyright © 2016 Jose Canepa. All rights reserved. | |
| // | |
| import AppKit |
| #!/usr/bin/env bash | |
| # | |
| # see: https://gist.github.com/gregorynicholas/2160046ec6946a2ce0fa | |
| # src: https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # updated: 2015-06-06 | |
| # | |
| # ask for the administrator password upfront | |
| sudo -v |
| let styles: [UIFont.TextStyle] = [ | |
| // iOS 17 | |
| .extraLargeTitle, .extraLargeTitle2, | |
| // iOS 11 | |
| .largeTitle, | |
| // iOS 9 | |
| .title1, .title2, .title3, .callout, | |
| // iOS 7 | |
| .headline, .subheadline, .body, .footnote, .caption1, .caption2, | |
| ] |