Skip to content

Instantly share code, notes, and snippets.

@voboshi
voboshi / sensor-light.yaml
Created August 5, 2023 11:59 — forked from Blackshome/sensor-light.yaml
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# Sensor Light
**Version: 4.2**
The most common automation used for a sensor light.
#!/usr/bin/env python3
# initial script by b1n4r1b01 but he deleted his repo
# https://gist.github.com/woachk/6092f9ae950455dcdf8428c3ce2d639e
# added python3 support
import sys
import struct
import os
@voboshi
voboshi / gitlab-local.sh
Created May 25, 2021 17:31 — forked from dragon788/gitlab-local.sh
Updated gitlab-runner supporting docker in docker
#!/usr/bin/env bash
set -euo pipefail
usage () {
echo "Usage: $(basename $0) {up|down|[job stage]}"
echo "[job stage] - defaults to "build" and supports multiple comma delimited jobs"
echo "$(basename $0) test,build"
}
PWD_RESOLVED="$(pwd -P)"