Docker info:
docker info
List Images:
| import Combine | |
| import Foundation | |
| import UIKit | |
| final class KeyboardFollower: ObservableObject { | |
| private var subscriptions = Set<AnyCancellable>() | |
| @Published var keyboardHeight: CGFloat = 0.0 |
| // | |
| // CALayer+AnimationPlayback.swift | |
| // Created by Philip Vasilchenko on 4/27/18. | |
| // | |
| import UIKit | |
| // Pause animations of layer tree | |
| // | |
| // Technical Q&A QA1673: |
| import Foundation | |
| // MARK: - Model classes | |
| /// The Pet superclass. | |
| class Pet: Codable { | |
| /// The name of the pet. | |
| let name: String | |
| enum CodingKeys: String, CodingKey { | |
| case name |
| public protocol Diffable: Hashable { | |
| var primaryKeyValue: String { get } | |
| } | |
| public struct AnyDiffable: Diffable { | |
| private let _primaryKeyValue: () -> String | |
| Development Phase: | |
| Step 1: Create Certificate .pem from Certificate .p12 | |
| Command: openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12 | |
| Step 2: Create Key .pem from Key .p12 | |
| Command : openssl pkcs12 -nocerts -out apns-dev-key.pem -in apns-dev-key.p12 | |
| Step 3: Optional (If you want to remove pass phrase asked in second step) | |
| Command : openssl rsa -in apns-dev-key.pem -out apns-dev-key-noenc.pem |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns on recent CPU
L2 cache reference ........................... 7 ns 14x L1 cache
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs 4X memory
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |