-
Start terminal and then sudo to a root shell
sudo -s
-
Go to /var/db/locationd
cd /var/db/locationd
-
Make a backup of the clients.plist file
cp -p clients.plist clients.plist.save
-
Convert clients.plist to xml (editable format)
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
import { } from 'firebase-admin' | |
import Hub from '../../../../../documents/hub' | |
import Item from '../../../../../documents/item' | |
type AnalyticsInput = | |
| UserAnalyticsInput | |
| HubAnalyticsInput | |
| ItemAnalyticsInput | |
enum AnalyticsInputType { |
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
import UIKit | |
public protocol Reusable { | |
static var reuseIdentifier: String { get } | |
} | |
public extension Reusable { | |
static var reuseIdentifier: String { | |
return String(describing: self) | |
} |
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
import Foundation | |
// MARK: SortDescriptor | |
/// Type-erased Sort Descriptor (can store multiple in the same array | |
/// regardless of the underlying KeyPath | |
public struct SortDescriptor<Element> { | |
private let comparator: (Any, Any) -> Bool |
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
version: 2 | |
jobs: | |
build: | |
macos: | |
xcode: "10.2.1" | |
shell: /bin/bash --login -eo pipefail | |
working_directory: /Users/distiller/project | |
environment: |
- Sourcery - GitHub repo;
- Lenses exapmle - How to supercharge Swift enum-based states with Sourcery, how to setup environment in a right way;
- AnyAction - Codable protocol implementers.
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
import Foundation | |
<% | |
func camelCased(_ string: String) -> String { | |
return "\(String(string.first!).lowercased())\(String(string.dropFirst()))".replacingOccurrences(of: ".", with: "") | |
} | |
func allEvents() -> [Type] { | |
return types.all.filter { type in | |
(type is Struct || type is Enum) && (type.implements["AppEvent"] != nil) |
- CocoaMQTT - client library for iOS/macOS/tvOS written with Swift 4
- MQTT Server - Setting up mosquitto (mqtt) and brew on mac os tutorial
- MQTT fx - MQTT Client GUI
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
func handle(_ errors: [Error]) -> Action { | |
func invalidToken(error: Client.Error) -> Action? { | |
guard error.message == "INVALID_TOKEN" else { return nil } | |
return InvalidateToken() | |
} | |
func paymentRequired(error: Client.Error) -> Action? { | |
guard error.message == "PAYMENT_REQUIRED" else { return nil } |
NewerOlder