Skip to content

Instantly share code, notes, and snippets.

@viranch
viranch / build-docker.sh
Last active February 4, 2016 18:34
Build dynamic docker 1.7.0
# stop
docker stop `docker ps -q`
sudo service docker stop
# dependencies
sudo apt-get remove -qy lxc-docker && sudo apt-get autoremove -qy
sudo apt-get install -qy libdevmapper-dev golang-gosqlite-dev uuid-dev btrfs-tools git gcc --no-install-recommends
# golang
curl -sSL https://golang.org/dl/go1.4.2.linux-amd64.tar.gz | sudo tar -C /usr/local -xz
@hnakamur
hnakamur / vagrant-1.8.1-xenial.patch
Last active June 8, 2016 15:52
A patch to support predictable network interface names like enp0s25 on Ubuntu 16.04 with Vagrant 1.8.1
diff -ruN vagrant-1.8.1.orig/plugins/guests/debian/cap/configure_networks.rb vagrant-1.8.1/plugins/guests/debian/cap/configure_networks.rb
--- vagrant-1.8.1.orig/plugins/guests/debian/cap/configure_networks.rb 2015-12-25 06:30:19.000000000 +0900
+++ vagrant-1.8.1/plugins/guests/debian/cap/configure_networks.rb 2016-04-24 03:22:08.000000000 +0900
@@ -1,3 +1,4 @@
+require 'log4r'
require 'set'
require 'tempfile'
@@ -9,8 +10,22 @@
class ConfigureNetworks
@ciotlosm
ciotlosm / Readme.md
Last active May 12, 2026 17:51
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.