Skip to content

Instantly share code, notes, and snippets.

View Rabscuttler's full-sized avatar
🐥
🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥

Laurence Watson Rabscuttler

🐥
🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥🐥
View GitHub Profile
@Rabscuttler
Rabscuttler / query.txt
Created April 6, 2020 17:46
Query for all solar PV nodes, ways and relations on OSM overpass turbo
[out:json];
area["name"="United Kingdom"]->.searchArea;
(
node(area.searchArea)["generator:source"="solar"]['generator:output:electricity'='yes'];
way(area.searchArea)["generator:source"="solar"]['generator:output:electricity'='yes'];
relation(area.searchArea)["generator:source"="solar"]['generator:output:electricity'='yes'];
);
out body;
>;
out skel qt;
@Rabscuttler
Rabscuttler / .block
Created May 21, 2019 14:00
Slope Chart
license: mit
#!/bin/bash
clear
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}
' http://192.168.0.13:6680/mopidy/rpc
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.add",
"params": {"uri": "spotify:user:half-baked:playlist:33oDg4iambUIRrG8gNoJSb"}}
@Rabscuttler
Rabscuttler / configuration.yaml
Last active April 1, 2016 11:05
My Home Assistant configuration (https://home-assistant.io/)
homeassistant:
# Name of the location where Home Assistant is running
name: Toad Hall
# Location required to calculate the time the sun rises and sets
latitude: XXXXXXXXXX
longitude: -XXXXXXXXXX
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/London