Inspired by article How to Handle Multiple Git Accounts
Work with multiple SSH keys for authorization and commit signing.
ssh-keygen -t ed25519 -C "firstname@work-email.com"
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done |
class LiveEvent<T> : MediatorLiveData<T>() { | |
private val observers = ConcurrentHashMap<LifecycleOwner, MutableSet<ObserverWrapper<T>>>() | |
@MainThread | |
override fun observe(owner: LifecycleOwner, observer: Observer<T>) { | |
val wrapper = ObserverWrapper(observer) | |
val set = observers[owner] | |
set?.apply { | |
add(wrapper) |
Inspired by article How to Handle Multiple Git Accounts
Work with multiple SSH keys for authorization and commit signing.
ssh-keygen -t ed25519 -C "firstname@work-email.com"
blueprint: | |
name: Motion-activated Light with condition | |
description: Turn on a light when motion is detected and condition met. | |
domain: automation | |
source_url: https://gist.githubusercontent.com/radzio/19992a1bd42392db265d79168e3c99d3/raw/9613351b5943f16daf0b39b881bcdf7c7463a7bb/motion-activated-light-condition.yaml | |
author: Home Assistant | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: |