Skip to content

Instantly share code, notes, and snippets.

🤖
I’m not a human. I’m a piece of machinery. I think everybody should be a machine

Franck Nijhof frenck

🤖
I’m not a human. I’m a piece of machinery. I think everybody should be a machine
Block or report user

Report or block frenck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@frenck
frenck / doorbell.yaml
Last active Aug 15, 2019
Blog: For just $2, convert any existing wired doorbell into a smart doorbell; using ESPHome and Home Assistant: https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/
View doorbell.yaml
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
View shield.yaml
media_player:
- platform: androidtv
host: 192.168.5.194
name: SHIELD
adb_server_ip: local-adb
adb_server_port: 5037
@frenck
frenck / basic.yaml
Created Jan 22, 2019
Sonoff Basic ESPHome
View basic.yaml
esphomeyaml:
name: basic
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
@frenck
frenck / pow.yaml
Created Jan 22, 2019
Sonoff POW R2 Washing Machine Sensor Example
View pow.yaml
esphomeyaml:
name: pow
platform: ESP8266
board: esp01_1m
board_flash_mode: dout
wifi:
ssid: 'Demo'
password: 'Livestream'
@frenck
frenck / .zshrc
Created Dec 11, 2018
My ZSH config
View .zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$(brew --prefix coreutils)/libexec/gnubin:$PATH
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
# Path to your oh-my-zsh installation.
export ZSH="/Users/frenck/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
View phpcs_issue_63_composer.json
{
"name": "drupal-composer/drupal-project",
"description": "Project template for Drupal 8 projects with composer",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "",
"role": ""
}
@frenck
frenck / hassio_ubuntu_install_commands.sh
Last active Aug 19, 2019
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
View hassio_ubuntu_install_commands.sh
sudo -i
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
View Future CI - nice to have.yml
---
image: docker:latest
variables:
ADDON_GITHUB_REPO: frenck/addon-example
ADDON_SLUG: example
ADDON_TARGET: example
DOCKER_DRIVER: overlay2
DOCKER_HUB_ORG: frenck
View hassio-install.sh
#!/usr/bin/env bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON GENERIC LINUX ##
## ##
###########################################################
###########################################################
set -o errexit # Exit script when a command exits with non-zero status
set -o errtrace # Exit on error inside any functions or sub-shells
View home_assistant_rebase_example
git clone https://github.com/bigwoof/home-assistant.github.io.git bigwoof
cd bigwoof
git remote add upstream git@github.com:home-assistant/home-assistant.github.io.git
git fetch upstream
git checkout next
git pull upstream next
git checkout patch-4
git rebase --onto next patch-4~1
git push -f
You can’t perform that action at this time.