This file contains hidden or 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
blueprint: | |
name: Tuya Rotary Switch | |
description: Automate your Tuya rotary switch using ZHA events. | |
domain: automation | |
input: | |
tuya_rotary_dimmer_switch: | |
name: Tuya Rotary Dimmer Switch | |
description: Tuya Rotary Dimmer Switch | |
selector: | |
device: |
This file contains hidden or 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
#!/bin/sh | |
# Plugin for netfilter-persistent which makes ipset lists persistent. | |
# | |
# Make sure that you have netfilter-persitent and ipset installed, | |
# put this file in /usr/share/netfilter-persistent/plugins.d and make it executable. | |
set -e | |
rc=0 |
This file contains hidden or 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
function get_git_branch | |
set -g git_branch (git rev-parse --abbrev-ref HEAD ^ /dev/null) | |
if [ $status -ne 0 ] | |
set -ge git_branch | |
end | |
end | |
function get_system_load | |
set -g system_load (uptime | grep -oE 'average\: [[:digit:]]+\.[[:digit:]]+' | cut -d' ' -f2) | |
end |