Skip to content

Instantly share code, notes, and snippets.

View anatoliykant's full-sized avatar

Anatoliy Kant anatoliykant

  • Belgrade
View GitHub Profile
1) stop services:
sudo systemctl stop hassio-supervisor.service
sudo systemctl stop hassio-apparmor.service
2) disable services:
sudo systemctl disable hassio-supervisor.service
sudo systemctl disable hassio-apparmor.service
3) remove services:
sudo rm -rf /etc/systemd/system/hassio-supervisor.service
@anatoliykant
anatoliykant / Binding+didSet.swift
Created December 22, 2020 21:16 — forked from Amzd/Binding+didSet.swift
SwiftUI Binding wrappers for willSet and didSet
extension Binding {
/// Wrapper to listen to didSet of Binding
func didSet(_ didSet: @escaping ((newValue: Value, oldValue: Value)) -> Void) -> Binding<Value> {
return .init(get: { self.wrappedValue }, set: { newValue in
let oldValue = self.wrappedValue
self.wrappedValue = newValue
didSet((newValue, oldValue))
})
}
localeIdentifier Description
eu Basque
hr_BA Croatian (Bosnia & Herzegovina)
en_CM English (Cameroon)
en_BI English (Burundi)
rw_RW Kinyarwanda (Rwanda)
ast Asturian
en_SZ English (Swaziland)
he_IL Hebrew (Israel)
ar Arabic