Skip to content

Instantly share code, notes, and snippets.

View mjrider's full-sized avatar
😎
Improving the world 1 LOC at a time

Robbert Müller mjrider

😎
Improving the world 1 LOC at a time
View GitHub Profile
@jap
jap / doorbell.yaml
Last active June 16, 2023 00:32
esphome powered imperial march doorbell
---
# writtten by Jasper Spaans,
# based on https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
esphome:
name: doorbell_v2
platform: ESP8266
board: esp01
# WiFi connection, correct these
# with values for your WiFi.
wifi:
@frenck
frenck / hassio_ubuntu_install_commands.sh
Last active February 1, 2023 05:38
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
Unbuntu is no longer support by the Home Assistant project.
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed.
import requests
from requests.auth import HTTPBasicAuth
import re
from StringIO import StringIO
import urllib
JIRA_URL = 'https://your-jira-url.tld/'
JIRA_ACCOUNT = ('jira-username', 'jira-password')
# the JIRA project ID (short)
JIRA_PROJECT = 'PRO'
@Potherca
Potherca / README.md
Last active April 14, 2018 15:46
SimplyEdit Loader with dynamic Key and Attribute switching based on host name. https://blog.pother.ca/simplyedit-loader/

Hands-on with SimplyEdit: Automated attribute switching

SimplyEdit Logo

A tool I like to use when creating websites is [SimplyEdit]. With SimplyEdit it is trivial to make content editable for the owner of the website. It is simply a matter of adding a <script> tag and some data attributes. (It's called SimplyEdit for a reason...)

One thing I noticed when developing with SimplyEdit, was that I kept switching

@wboykinm
wboykinm / falsehoods.md
Last active February 1, 2024 15:52
Falsehoods programmers believe about addresses - by Michael Tandy

Falsehoods programmers believe about addresses

This is an anchor-linked version of the excellent, amazing original opus magnum by Michael Tandy.

An address will start with, or at least include, a building number.

Counterexample: Royal Opera House, Covent Garden, London, WC2E 9DD, United Kingdom.

When there is a building number, it will be all-numeric.

Counterexample: 1A Egmont Road, Middlesbrough, TS4 2HT