Skip to content

Instantly share code, notes, and snippets.

@vanceb
vanceb / PIR_light.yaml
Last active September 13, 2023 08:48
Home Assistant Blueprints - Automated PIR light with manual override
blueprint:
name: PIR-activated Light
description: Turn on a light when motion is detected on PIR, but only after sunset.
domain: automation
source_url: https://gist.github.com/vanceb/b7402b9d1f66a6a2fb5c8e6de2a39b26
input:
motion_entity:
name: Motion Sensor
selector:
entity:
@vanceb
vanceb / gist:e9f5f997fd65a733887b68dfc074cb2a
Created February 6, 2019 19:56
vscode c_cpp_properties.json for STM32Cube Projects
{
"configurations": [
{
"name": "SNM32Cube",
"includePath": [
"${workspaceFolder}/**",
"/opt/gcc-arm-none-eabi/arm-none-eabi/include/**",
"/opt/gcc-arm-none-eabi/lib/gcc/arm-none-eabi/**"
],
"defines": [
@vanceb
vanceb / .Xresources
Created February 6, 2019 19:50
i3 Retina Display
Xft.dpi: 192
@vanceb
vanceb / update-route53.sh
Created December 26, 2017 10:07 — forked from phybros/update-route53.sh
BASH Script to keep Route53 updated with your current external IP address
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
#PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="enter zone id here"
# The CNAME you want to update e.g. hello.example.com