Skip to content

Instantly share code, notes, and snippets.

View bonelifer's full-sized avatar

William Jacoby bonelifer

View GitHub Profile
@bonelifer
bonelifer / reparse_bbcodes.php
Created June 7, 2016 04:09 — 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)
<?php
/**
*
* @package Support Toolkit - Reparse BBCode
* @version $Id$
* @copyright (c) 2009 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
#!/bin/bash
# KODI
# Parameters:
# UL - update library
# CL - clean library
# UAL - update audio library
# CAL - clean audio libary
# QUIT - Quit KODI
## Don't edit this
@bonelifer
bonelifer / convert-avatars.php
Created April 2, 2019 22:13 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
<?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 / doorbell.yaml
Created May 3, 2020 19:20 — 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/
---
esphome:
name: doorbell
platform: ESP8266
board: esp01_1m
# WiFi connection, correct these
# with values for your WiFi.
wifi:
ssid: !secret wifi_ssid
@bonelifer
bonelifer / HASS.md
Created May 3, 2020 19:31
Home Assistant Linux Docker installation

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 / hassio_ubuntu_install_commands.sh
Created May 3, 2020 19:58 — forked from frenck/hassio_ubuntu_install_commands.sh
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
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
#!/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 / install-hassio
Created May 3, 2020 20:01 — forked from davidvidmar/install-hassio
Install HASS.IO on Ubuntu Server 18.04
# 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
@bonelifer
bonelifer / environment
Last active May 29, 2020 15:59
WXForcast SystemD files
WXFORECAST_PUSHOVER_APP_KEY=randomAPPKey
WXFORECAST_COORDINATES=31.02,-90.56
PUSHOVER_DEVICE=weather
PUSHOVER_USER_KEY=randomGroupKey