Skip to content

Instantly share code, notes, and snippets.

@Yannik25
Yannik25 / drawio-export-pdf.sh
Last active September 5, 2021 19:10 — forked from dettmering/drawio-export-pdf.sh
draw.io: Export all .drawio files in folder to PDF and PNG while preserving history. Very useful as a post-commit hook.
#!/bin/bash
rm -f *.pdf
rm -f *.png
COMMIT=$(git rev-parse HEAD)
for f in *.drawio
do
/Applications/draw.io.app/Contents/MacOS/draw.io --crop -x -f pdf -o ./$f.pdf ./$f
@Yannik25
Yannik25 / CreateDebianVM.sh
Last active September 5, 2021 16:56 — forked from andreafortuna/CreateDebianVM.sh
Automatically create and start a Debian VM on VirtualBOX
#!/bin/bash
MACHINENAME=$1
# Download debian.iso
if [ ! -f ./debian.iso ]; then
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.0.0-amd64-netinst.iso -O debian.iso
fi
#Create VM
VBoxManage createvm --name $MACHINENAME --ostype "Debian_64" --register --basefolder `pwd`
@Yannik25
Yannik25 / Readme.md
Created October 8, 2020 14:51 — 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.