Skip to content

Instantly share code, notes, and snippets.

William Jacoby bonelifer

View GitHub Profile
@bonelifer
bonelifer / install-hassio
Created May 3, 2020 — forked from davidvidmar/install-hassio
Install HASS.IO on Ubuntu Server 18.04
View install-hassio
# source: https://www.juanmtech.com/set-up-hassio-in-docker-and-in-an-ubuntu-server/
# last update: 26 Oct 2019, DaVidmar
#
# update system and packages
#
apt-get update
apt-get upgrade
# INSTALL DOCKER
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
@bonelifer
bonelifer / hassio_ubuntu_install_commands.sh
Created May 3, 2020 — forked from frenck/hassio_ubuntu_install_commands.sh
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
systemctl disable ModemManager
apt-get purge modemmanager
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-installer/master/hassio_install.sh" | bash -s
View Hassio_FAQ.md

Hassio FAQ

Frequently asked questions from the Discord channel

This first one isn't a question, but a strong recommendation:

INSTALL ONE OF THE SSH ADDONS

Do it! Do it now! Pick one from either the official repo or the community repo (recommended) and install it, set up a user/pass or key, and then forget about it if you want. But leave it running and set to run at startup.

I run in a VM and already have SSH access. Why would I need to do that?

@bonelifer
bonelifer / HASS.md
Created May 3, 2020 — forked from Ullski/HASS.md
Home Assistant Linux Docker installation
View HASS.md
@bonelifer
bonelifer / doorbell.yaml
Created May 3, 2020 — forked from frenck/doorbell.yaml
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
@bonelifer
bonelifer / convert-avatars.php
Created Apr 2, 2019 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
View convert-avatars.php
<?php
/**
* Converts all phpBB 3.1 remote avatars to uploaded avatars.
*
* To use this script:
*
* 1. Copy this file into the root of your phpBB installation.
* 2. Run the script from the command line: php convert-avatars.php
*
* Any avatar will be skipped if any errors come up, like these:
@bonelifer
bonelifer / reparse_bbcodes.php
Created Jun 7, 2016 — forked from 3D-I/reparse_bbcodes.php
Copied from STK for Olympus and customized to work on Ascraeus (phpBB 3.1). For me it works. Tell me if it works for you too. (Please be logged in as administrator if you call it)
View reparse_bbcodes.php
<?php
/**
*
* @package Support Toolkit - Reparse BBCode
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
@bonelifer
bonelifer / rpi.py
Created May 6, 2016 — forked from HappyCodingRobot/rpi.py
Simple XBMC/Kodi controller via http POST request and JSONRPC
View rpi.py
#!/usr/bin/python
'''
Very simple XBMC/Kodi controller via http POST request and JSONRPC
(testing the principle..)
'''
import httplib
import sys, argparse
import json
PI = '192.168.162.33'
View KodiBackup.sh
### This should be run from /sdcard/Android/data/org.xbmc.kodi/files
tar cvzf /usbdisk/kodi_backup.tar.gz --exclude=.kodi/userdata/Database/Textures13.db --exclude=.kodi/userdata/Thumbnails --exclude=.kodi/temp .kodi
You can’t perform that action at this time.