Skip to content

Instantly share code, notes, and snippets.

ghazlewood / ZOE-Widget.js
Last active July 1, 2021 20:05 — forked from mountbatt/ZOE-Widget.js
Scriptable iOS widget that displays the status of your Renault ZOE on your iPhone and iPad.
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: light-gray; icon-glyph: car;
// version 2021-02-10
// add your my-renault account data:
let myRenaultUser = "user" // email
let myRenaultPass = "pass" // password
// set your ZOE Model (Phase 1 or 2) // bitte eingeben!
ghazlewood /
Last active March 13, 2019 13:51 — forked from ispiropoulos/
Shelly Switch Home Assistant Component

Support for The Shelly Wifi switch.

Save the below file inside ".homeassistant/custom_components/shelly" as (create the folders if not present), create an empty file in that folder too, and restart HASS.

usage example:

  - platform: shelly
# check the bare domain IP against the current CDN hostnames
# edit me!
DOMAINS=array( '' '' '' )
for DOMAIN in "${DOMAINS[@]};" do
echo "checking $DOMAIN"
# check the bare domain IP against the current CDN hostnames
# edit me!
# gather details
BAREIP=`dig a $DOMAIN +short`
CDN=`dig $ +short`

Keybase proof

I hereby claim:

  • I am ghazlewood on github.
  • I am ghazlewood ( on keybase.
  • I have a public key ASBhydl62jTHOaCXhfc0jCsU7Pl_2zTXbfggSG9M9m3Sgwo

To claim this, I am signing this object:

#set -o verbose
#set -x
#set -v
#sed -e :a -e '$!N;s/ \n/,/;ta'
#start the file over and erase contents
echo '' > details.csv
#write the column headings
* Add content type to the class of the row.
function MODULE_preprocess_semanticviews_view_unformatted(&$vars, $hook) {
if ($hook == 'semanticviews_view_unformatted__package__node_content_1') {
// The index in the field array is the simple field name and is consistent
// across joins. e.g. when the field is 'type', the field alias could be
// 'node_node_data_field_package_content_type' if it's at the end of a