Skip to content

Instantly share code, notes, and snippets.

View Arcovv's full-sized avatar
🎯
Focusing

Arco Hsieh Arcovv

🎯
Focusing
View GitHub Profile
@Arcovv
Arcovv / k9s.txt
Created May 18, 2023 17:11 — forked from BigNerd/k9s.txt
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod
extension RawRepresentable where RawValue == Int {
static var itemsCount: Int {
var index = 0
while Self(rawValue: index) != nil { index += 1 }
return index
}
static var items: [Self] {
var items: [Self] = []
@Arcovv
Arcovv / CrashlyticsSwift.Swift
Created October 1, 2016 13:32 — forked from DimaVartanian/CrashlyticsSwift.Swift
Crashlytics CLS_LOG() in Swift
//
// Created by Dima Vartanian on 10/29/15.
//
import Foundation
import Crashlytics
// this method gives us pretty much the same functionality as the CLS_LOG macro, but written as a Swift function, the only differences are that we have to use array syntax for the argument list and that we don't get see if the method being called is a class method or an instance method. We also have to define the DEBUG compiler flag with -D SWIFT_DEBUG.
// usage: