Skip to content

Instantly share code, notes, and snippets.

@primeinc
primeinc / Readme.md
Last active November 3, 2020 06:49 — forked from ciotlosm/Readme.md
Kiosk mode for lovelace

Kiosk mode

Installation

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.

@primeinc
primeinc / mkinstance.sh
Last active August 29, 2015 14:08 — forked from jarvys/run-multiple-redis-instances.md
run multiple redis instances on the same server for centos 6.5 using Redis 2.8 from Remi
#!/usr/bin/env bash
# will@prime.ms | Updated: 10/31/14
# usage: ./mkinstance.sh -h
# Based on the Redis 2.8.17-2.el6.remi
# TODO: Add overwrite arg for base conf
# TODO: Grab all replacements for sed from base conf file, currently assumes too many defaults
# TODO: Handle removal if instance was already removed once before
conf="/etc/redis.conf"
confdir=$(dirname "$conf")
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select