Skip to content

Instantly share code, notes, and snippets.

@legendof-selda
legendof-selda / mkdocs_azure_wiki_sync.yml
Last active June 17, 2023 04:35
GitHub action which syncs mkdocs to azure devops wiki.
name: Publish docs via GitHub Pages
# syncs your mkdocs markdown files with azure devops wiki.
# NOTE: this doesn't work with automated markdown files which maybe generated in your case
# this also doesn't deal with ordering
on:
push:
branches:
- develop
workflow_dispatch:
@Blackshome
Blackshome / sensor-light.yaml
Last active May 2, 2024 18:36
Home Assistant Sensor Light that can be used in Blueprints
blueprint:
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 6.5**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
@ndbroadbent
ndbroadbent / ha_compile_jinja.service
Last active November 2, 2023 16:36
Script to compile and format *.yaml.jinja files in Home Assistant config directory (Including systemd service)
[Unit]
Description=Compile Jinja templates to YAML in Home Assistant config directory
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=3
ExecStart=/opt/ha_compile_jinja.sh
@mallendeo
mallendeo / 100.conf
Last active March 29, 2024 17:10
Windows 11 Gaming VM on Proxmox VFIO
##/etc/pve/qemu-server/100.conf
##Network and disks not included in this example
##Set halt_poll_ns
#set_halt_poll 0
##CPU pinning
#cpu_taskset 1-7
#assign_interrupts --sleep=10s 1-7 --all
agent: 1
@m33x
m33x / hass.js
Last active April 27, 2024 22:35
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@PierpaoloPernici
PierpaoloPernici / multitail.conf
Created May 5, 2019 07:12
Multitail setup for home-assistant
#Possible colors: red, green, yellow, blue, magenta, cyan and white.
colorscheme:hass:Home Assistant
cs_re:blue:^.......... ..:..:..
cs_re:red:(\sERROR\s)
cs_re:yellow:(\sWARNING\s)
cs_re:blue:(\sDEBUG\s)
cs_re:cyan::
cs_re:green:\[
cs_re:green:\]
cs_re:green:\(
@ob1-sc
ob1-sc / lastpass-cli-how-to.md
Last active April 14, 2022 15:33
How to setup and use LastPass cli to retrieve secrets when scripting

Prerequisties

  1. An active LastPass account
  2. LastPass cli installed, see here

Create a password entry in LastPass with the following details:

  • name: my-super-secret
  • username: my-super-secret-username
  • password: my-super-secret-password
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active March 30, 2024 16:53
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-
@mlafeldt
mlafeldt / postmortem.md
Last active March 27, 2024 09:23
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
@mapero
mapero / README.md
Last active October 15, 2021 18:30
mqtt job for dashing.io with publish and subscribe support

#Description This files will enable you to directly connect your widgets with your mqtt broker. It consists of a job, which will manage the connection to your project. It will over a rest api to publish, subscribe and unsubscribe from your widgets.

#Installation Add the mqtt.rb to your dashing jobs.

#Usage To connect a widget to mqtt use a post on 'mqtt/subscribe' on your constructor. As parameters you need to post the topic to subscribe and the widget id. E.g.:

 $.post 'mqtt/subscribe',