This file contains 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: ZHA - Philips Hue Dimmer V2 Dual | |
description: | |
"Control two lights with a Philips Hue Dimmer V2 (RWL022)" | |
domain: automation | |
input: | |
remote: | |
name: Philips Hue Dimmer | |
description: Pick a V2 Dimmer (RWL022) | |
selector: |
This file contains 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: ZHA - Philips Hue Dimmer V1 | |
description: | | |
Control lights with a Philips Hue Dimmer Switch. | |
The top "on" button behaviour is adjustable. By default it behaves like this: | |
- Press it while the light is off, and the light will turn on to the last set brightness. | |
- Press it again while the light is on, the light will turn to the fixed brightness setting. | |
Dim up/down buttons will change the brightness smoothly and can be pressed |
This file contains 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
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
This file contains 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
accept = 'ours' # ours for 'HEAD' #theirs for other's - choose strategy here for all conflicts | |
filename = 'enter your filename here' | |
fresult = '{}.{}'.format(filename, 'merged') # result will be near your file with name `original_filename.ext.merged` | |
with open(filename) as f: | |
content = f.readlines() | |
res = open(fresult, 'w') | |
to_write = True | |
merging = False |
This file contains 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/bash | |
# add pulseaudio-modules-bt from home:MasterPatricko for ldac codec | |
echo -e "pair 38:18:x:xx:xx:xx\nyes" | bluetoothctl | |
sleep 2 | |
bluetoothctl -- trust 38:18:x:xx:xx:xx | |
bluetoothctl -- connect 38:18:x:xx:xx:xx | |
sleep 2 | |
bluetoothctl -- disconnenct 38:18:x:xx:xx:xx | |
sleep 2 | |
pulseaudio -k && pulseaudio --start |
This file contains 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
#/usr/bin/env sh | |
# Get the Zone ID from: https://www.cloudflare.com/a/overview/<your-domain> | |
DNS_ZONE=*** | |
# Get the existing identifier for DNS entry: | |
# https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records | |
IDENTIFIER=*** | |
# Get these from: https://www.cloudflare.com/a/account/my-account |