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: | |
// 1. Go in the Firebase Analytics Dashboard | |
// 2. Filter iOS Platform only | |
// 3. Scroll down, select `Device` under the "What is your audience like?" widget | |
// 4. Export the CSV data (top right of the corner, there's a `...` menu with Download CSV option) | |
// 5. Open the file and select the iOS breakdown raw data | |
// 6. Replace your data with the sample data in this script | |
// 7. Run the script in a Xcode Playground | |
// 8. See the terminal output |
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
Process: Xcode [2541] | |
Path: /Applications/Xcode.app/Contents/MacOS/Xcode | |
Identifier: Xcode | |
Version: 11.5 (16139) | |
Build Info: IDEFrameworks-16139000000000000~62 (11E608c) | |
App Item ID: 497799835 | |
App External ID: 835814967 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Xcode [2541] |
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
Hello, | |
I'd like to request the following information, in accordance with the information rights in the GDPR, and particularly Article 15. Please address all points in this email in turn. | |
1. A copy of all my personal data held and/or undergoing processing, in a commonly used electronic form (Article 15(3)). Please note that this might also include any audiovisual material (e.g. voice-recordings or pictures) and is not necessarily limited to the information contained in your customer database and/or the information you make available through the ‘manage my profile’ functionality. For all data that would fall under Article 20 (portability), I would like to recieve this in a commonly-used machine readable format. For data that does not fall under Article 20, such as data inferred about me or opinions about me, I would like this in a commonly-used electronic format. | |
2. If any data was not collected, observed or inferred from me directly, precise information about the source of that data, including the name and c |
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
Process: Screens 4 [66291] | |
Path: /Applications/Screens 4.app/Contents/MacOS/Screens 4 | |
Identifier: com.edovia.screens4.mac | |
Version: 4.7.5 (14936) | |
App Item ID: 1224268771 | |
App External ID: 835721196 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Screens 4 [66291] | |
User ID: 501 |
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
// | |
// Copyright © 2020 Peter Steinberger. MIT Licensed. | |
// | |
import Foundation | |
/// Text input can crash in Mac Catalyst due to a property not being atomic. | |
/// We swizzle the `documentState` property of `RTIInputSystemSession` to make it thread safe. | |
func installMacCatalystAppKitTextCrashFix() { | |
// RTIInputSystemSession is loaded later, so we will check a few times. |
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
Process: Twitter [18613] | |
Path: /Applications/Twitter.app/Contents/MacOS/Twitter | |
Identifier: Twitter | |
Version: 8.19 (8.19.1) | |
App Item ID: 1482454543 | |
App External ID: 835910359 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Twitter [18613] | |
User ID: 501 |
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
Process: Twitter [45863] | |
Path: /Applications/Twitter.app/Contents/MacOS/Twitter | |
Identifier: Twitter | |
Version: 8.19 (8.19.1) | |
App Item ID: 1482454543 | |
App External ID: 835910359 | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Twitter [45863] | |
User ID: 501 |
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
// Run any SwiftUI view as a Mac app. | |
import Cocoa | |
import SwiftUI | |
public func run<V: View>(view: V) { | |
let delegate = AppDelegate(view) | |
let app = NSApplication.shared | |
NSApp.setActivationPolicy(.regular) | |
app.mainMenu = app.customMenu |
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
Need to run with csrutil disable or recovery | |
sudo nvram boot-args="debug=0x104c44” | |
0x104c44 = 1 0000 0100 1100 0100 0100 | |
DB_NMI 0x4 // changes the power-button to create a non-maskable interrupt? | |
DB_ARP 0x40 // allows debugging across subnets via ARP? | |
DB_KERN_DUMP_ON_PANIC 0x400 // Trigger core dump on panic |
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 FirebaseCoordinator { | |
static let shared = FirebaseCoordinator() | |
static let initialize: Void = { | |
/// We modify Google Firebase (and eventually Analytics) to load the mac-specific plist at runtime. | |
/// Google enforces that we have a file named "GoogleService-Info.plist" in the app resources. | |
/// This is unfortunate since we need two different files based on iOS and Mac version | |
/// One solution is a custom build step that copies in the correct file: | |
/// https://stackoverflow.com/questions/37615405/use-different-googleservice-info-plist-for-different-build-schemes | |
/// However, this is basically impossible since Catalyst doesn't set any custom build variables, so detection is extremely difficult. | |
/// We swizzle to modify the loading times. |