This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
#!/usr/bin/env bash | |
#============================================================================== | |
# title: gen_kustomization.sh | |
# description: This script automatically creates kustomization deployment files from kubectl | |
# author: Kawin Viriyaprasopsook <kawin.v@kkumail.com> | |
# usage: bash gen_kustomization.sh | |
# notes: need `kubectl kubectl-convert kubectl-neat` packages | |
#============================================================================== | |
mkdir -p kustomization && cd kustomization |
function video_to_gif { | |
local input_video_path="$1" | |
local output_gif_path="$2" | |
local fps="${3:-10}" | |
local scale="${4:-1080}" | |
local loop="${5:-0}" | |
ffmpeg -i "${input_video_path}" -vf "setpts=PTS/1,fps=${fps},scale=${scale}:-2:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop $loop "${output_gif_path}" | |
} |
#!/bin/bash | |
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont' |
#!/bin/bash | |
con="${1}" | |
if [[ -z "$con" ]]; then | |
echo "Please provide an interface name as an argument." | |
exit 1 | |
fi | |
while true; do | |
conns=$(nmcli con show "$con" | grep "GENERAL.STATE:" | grep "activated") |
#! /usr/bin/perl | |
# | |
# Script to check for changes. It stores the original in a template file | |
# and (optionally) applies transformations on the output to compare with | |
# the updated content of a file or output from a command. | |
# | |
# Copyright 2016 <kjetil.homme@redpill-linpro.com> | |
# Released under the GPLv3 or later. | |
use strict; |
#!/usr/bin/env bash | |
set -o errexit | |
echo $(date):Random read | |
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \ | |
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test | |
echo $(date):Random write | |
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \ |
This code is usable only if you are on Home Assistant 0.114 or older
For Home Assistant 0.115 and newer please go to: https://github.com/AdamNaj/ZWaveGraphHA
Add kiosk.js
file with the content below to your www
folder in config.
Like any other custom script, use ui-lovelace.yaml
resources section to reference the kiosk.js
file.
Make sure you add kiosk
somewhere in your URL. You can use it in the id of your view or in the query string.
diff --git a/requirements_all.txt b/requirements_all.txt | |
index 6141e3d..2da4ce0 100644 | |
--- a/requirements_all.txt | |
+++ b/requirements_all.txt | |
@@ -695,9 +695,6 @@ python-vlc==1.1.2 | |
# homeassistant.components.wink | |
python-wink==1.2.4 | |
-# homeassistant.components.zwave | |
-python_openzwave==0.4.0.31 |
import appdaemon.appapi as appapi | |
import homeassistant.util.dt as dt_util | |
# | |
# Notify stale sensors. | |
# Each minute last update of sensor is checked to see if it is higher than the configured value | |
# | |
# Args: | |
# sensor = sensor to monitor | |
# tiempo = minutes threshold to notify |