Skip to content

Instantly share code, notes, and snippets.

View v411e's full-sized avatar
🔦
Deep down in a rabbit hole

Valentin Rieß v411e

🔦
Deep down in a rabbit hole
View GitHub Profile

Test Github Plug

$NIX-PATH

blueprint:
name: "Illuminance sensor light filter"
description: Use indoor illuminance sensors to meter general day brightness, filtering out artificial lights.
domain: automation
input:
illuminance_sensor:
name: Illuminance sensor
selector:
entity:
domain: sensor
@v411e
v411e / sox_spectrogram.sh
Created June 26, 2022 14:19
[Spectrograms with sox]
for f in *.wav; do
sox "${f}" -n spectrogram -o "spectrogram_${f%.wav}"
done
@v411e
v411e / count_recursive_files.sh
Created June 21, 2022 20:15
[Count recursive files]
find . -type f | grep .wav | wc -l
@v411e
v411e / move_files_to_subdir.sh
Last active June 21, 2022 19:37
[Move number of files into subdirectory]
#!/bin/bash
max=0
path=""
index=0
while getopts "f:m:i:" opt; do
case $opt in
f) path="$OPTARG"
;;
m) max="$OPTARG"
@v411e
v411e / rsync
Created April 13, 2022 09:29
[Rsync] Rsync commands #sh #backup
rsync -aHh --numeric-ids --info=progress2 --exclude 'images'
@v411e
v411e / zha_ikea_tradfri_5button_remote_color_temp.yaml
Last active July 28, 2021 21:23
IKEA Tradfri 5 Buttons with color_temp
---
# This automation simulates the use of the IKEA TRADFRI Remote control
# connected through ZHA.
# | Button | Action |
# | -------- | ------------------- |
# | Power | Toggle the light |
# | Dim-Up | Increase brightness |
# | Dim-Down | Decrease brightness |
# | Right | Change color |