Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
DOMAIN=$1
if [ "$DOMAIN" = "" ]; then
echo "Please supply domain"
exit
fi
CONFFILE=/tmp/${DOMAIN}-$$.cnf
C=NL
O=${DOMAIN}
@mrvanes
mrvanes / download_maps
Created February 21, 2019 11:53
download_maps
#!/bin/bash
URL='http://download.osmand.net/download?standard=yes&file='
for MAP in *.obf; do
MAPFILE=${MAP#./}
MAPNAME=${MAPFILE%.obf}
echo $MAPNAME
DLMAP=${MAPNAME}_2.obf.zip
DLURL=${URL}${DLMAP}
wget $DLURL -O $DLMAP
@mrvanes
mrvanes / download_roads
Created February 21, 2019 11:52
download_roads
#!/bin/bash
URL='http://download.osmand.net/download?standard=yes&file='
for MAP in *.obf; do
MAPFILE=${MAP#./}
MAPNAME=${MAPFILE%.road.obf}
echo $MAPNAME
DLMAP=${MAPNAME}_2.road.obf.zip
DLURL=${URL}${DLMAP}
wget $DLURL -O $DLMAP
@mrvanes
mrvanes / id_rsa.pub
Created November 5, 2018 13:28
pubkey
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYWfBxvb7BV3GY3+sFWNwBZvTBEFwmBJQRuMvyqf0anSJdwnGa+gQi9clI8u5TEoS5pKq7v1PAEUd3sepNYuJMuJ2UM1EsCLJkGpZ9Lg5VcKi7pR9r0hBwvX3t7lXvVijb0uyQ+iQygU1fXiRnH5XR1LO1AzFqQYtAzp+88TRbvw48DyfN+H15AUdqfK2itkOi9ipUu0tL/64Pq1udLci6wvYFl6WBU7Mm1tuRY2GCCdDBgcOipnksLCeHBEd5vqO2tk3HCmtMxJ34krd6carlfKlzWifOOinAxdaYbmMwpzx4AGPTBoooOpHpiKAGo7OtVDUvEhl+4Ss0EVCeiaov martin@minivanes
"""
A Home Assistant (home-assistant.io) service to component lights that accept RGB, XY or MIREDS color commands.
Original Copyright (c) 2017 Alexandre Conde <xlcnd@outlook.com>
https://gist.github.com/xlcnd/01b2d8a28d9d77af901840072360a434
Edited by Martin van Es, October 2018
Licensed under MIT

Keybase proof

I hereby claim:

  • I am mrvanes on github.
  • I am mrvanes (https://keybase.io/mrvanes) on keybase.
  • I have a public key whose fingerprint is FE4C 2A0D 3AB5 AF03 8347 FC4A 65A5 2289 4EAE 80EF

To claim this, I am signing this object: