Skip to content

Instantly share code, notes, and snippets.

FROM node:20
ARG TZ
ENV TZ="$TZ"
# Install basic development tools and iptables/ipset
RUN apt update && apt install -y less \
git \
procps \
sudo \
blueprint:
name: Send a notification when vibration is detected
description: >
This automation blueprint creates a notifications if vibration is detected and sends a notification to your phone.
Optionally you can define a binary sensor that will block the automation from running when state is ON.
For Example do not run when somebody is home (you can use the people_home template example).
Furthermore you have the option to make the notification critical or high priority and to collapse/overwrite or not.
Required entities:
blueprint:
name: Door Sensor Light
description: Turn a light when a door is opened
domain: automation
input:
doorsensor_entity:
name: Door Sensor
selector:
entity:
domain: binary_sensor
blueprint:
name: Door Sensor Light
description: Turn a light when a door is opened
domain: automation
input:
doorsensor_entity:
name: Door Sensor
selector:
entity:
domain: binary_sensor
{
"TRBL": {
"prefix": ".trbl",
"scope": "css,postcss",
"body": [
"top: 0;",
"right: 0;",
"bottom: 0;",
"left: 0"
],
@JohnONolan
JohnONolan / headless-cms-archive.json
Last active January 8, 2019 19:33
HEADLESSCMS.ORG DATA ARCHIVE
{"timestamp":1546975992483,"data":{"appernetic":[{"timestamp":1546975992483,"followers":3159},{"timestamp":1541993816200,"followers":3205}],"b2evolution-cms":[{"timestamp":1546975992483,"followers":1031,"stars":96,"forks":45,"issues":7},{"timestamp":1541993816200,"followers":1033,"stars":93,"forks":45,"issues":7}],"bowtie":[{"timestamp":1546975992483,"followers":6},{"timestamp":1541993816200,"followers":6}],"builtio":[{"timestamp":1546975992483,"followers":1456},{"timestamp":1541993816200,"followers":1457}],"butter-cms":[{"timestamp":1546975992483,"followers":373},{"timestamp":1541993816200,"followers":334}],"canner":[{"timestamp":1546975992483,"followers":141,"stars":2318,"forks":84,"issues":26},{"timestamp":1541993816200,"followers":120,"stars":2239,"forks":76,"issues":20}],"cloudcannon":[{"timestamp":1546975992483,"followers":1097},{"timestamp":1541993816200,"followers":1108}],"cloud-cms":[{"timestamp":1546975992483,"followers":250},{"timestamp":1541993816200,"followers":251}],"cockpit":[{"timestamp":15469
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.reframe=t()}(this,function(){"use strict";function e(e,t){var i="string"==typeof e?document.querySelectorAll(e):e,n=t||"js-reframe";"length"in i||(i=[i]);for(var o=0;o<i.length;o+=1){var r=i[o];if(!(-1!==r.className.split(" ").indexOf(n))){var d=r.getAttribute("height"),f=r.getAttribute("width");if(!(f.indexOf("%")>-1||r.style.width.indexOf("%")>-1)){var a=(d||r.offsetHeight)/(f||r.offsetWidth)*100,s=document.createElement("div");s.className=n;var l=s.style;l.position="relative",l.width="100%",l.paddingTop=a+"%";var p=r.style;p.position="absolute",p.width="100%",p.height="100%",p.left="0",p.top="0",r.parentNode.insertBefore(s,r),r.parentNode.removeChild(r),s.appendChild(r)}}}}return e});reframe('iframe');
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[The Cloudflare Blog]]></title><description><![CDATA[Helping Build a Better Internet]]></description><link>https://blog.cloudflare.com/</link><image><url>https://blog.cloudflare.com/favicon.png</url><title>The Cloudflare Blog</title><link>https://blog.cloudflare.com/</link></image><generator>Ghost 2.1</generator><lastBuildDate>Tue, 25 Sep 2018 20:12:48 GMT</lastBuildDate><atom:link href="https://blog.cloudflare.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[Get a head start with QUIC]]></title><description><![CDATA[Today Cloudflare opened the door on our beta deployment of QUIC with the announcement of our test site: cloudflare-quic.com. ]]></description><link>https://blog.cloudflare.com/head-start-with-quic/<
availableCountries = {
af: {name: 'Afghanistan', tax_location: 'OS', postal_region: 'RW'},
ax: {name: 'Aland Islands', tax_location: 'OS', postal_region: 'RW'},
al: {name: 'Albania', tax_location: 'OS', postal_region: 'EU'},
dz: {name: 'Algeria', tax_location: 'OS', postal_region: 'RW'},
as: {name: 'American Samoa', tax_location: 'OS', postal_region: 'RW'},
ad: {name: 'Andorra', tax_location: 'OS', postal_region: 'EU'},
ao: {name: 'Angola', tax_location: 'OS', postal_region: 'RW'},
ai: {name: 'Anguilla', tax_location: 'OS', postal_region: 'RW'},
aq: {name: 'Antarctica', tax_location: 'OS', postal_region: 'RW'},
@JohnONolan
JohnONolan / gist:7583092
Created November 21, 2013 15:00
Full screen image
sizeContent();
$(window).resize(sizeContent);
function sizeContent() {
var newHeight = $(window).height();
$(".banner").css("height", newHeight);
}