Skip to content

Instantly share code, notes, and snippets.

Andy Boff caelor

Block or report user

Report or block caelor

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
caelor /
Last active Nov 15, 2018
Home Assistant Scene Controller Component
Component to offer scene recording and tracking. Compatible with existing
services as much as possible (e.g. scene_controller.select_option works
the same as input_select.select_option). The scene controller will track
the current scene, and light values, and optionally update the scene
record to match the current values.
import logging
import voluptuous as vol
#!/usr/bin/env python
# Script to read DOCSIS stats from a VM SuperHub 2ac in Modem mode,
# and insert them into an InfluxDB database (e.g. for graphing)
# Intended to be run every minute by cron job.
# Based on
# Adapted for InfluxDB and Modem mode
from bs4 import BeautifulSoup

Keybase proof

I hereby claim:

  • I am caelor on github.
  • I am andy_boff ( on keybase.
  • I have a public key whose fingerprint is 2569 B955 B44C C5DD 0F21 3119 7511 328A 7E48 0F9F

To claim this, I am signing this object:

caelor / Install Notes
Created May 1, 2015
OpenWRT mr3020 Switchable configs on boot
View Install Notes
1) Create the files /root/ and /etc/init.d/modeswitch
2) /etc/init.d/modeswitch enable to enable the config
caelor / satip-vtuner ubuntu
Last active Oct 20, 2015
Steps to get the satip/vtuner combination working on Ubuntu 14.10 - this makes a SatIP server appear as 4 local DVB-S2 tuners
View satip-vtuner ubuntu
Starting from Ubuntu 14.10 Server clean install
Set up:
> sudo mkdir /opt/satip
> sudo chown <user> /opt/satip
> sudo apt-get install git build-essential linux-source linux-headers-$(uname -r)
> cd /opt/satip
> git clone
> tar xjvf /usr/src/linux-source-3.16.0/linux-source-3.16.0.tar.bz2
(extracts into /opt/satip/linux-source-3.16.0/)
caelor /
Last active Aug 29, 2015 — forked from davejamesmiller/
Bash "ask" function, modified to force reading from controlling terminal. This makes it suitable for using in "while read line; do ... done < $(file)" loops (that direct the file into stdin)
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
while true; do
if [ "${2:-}" = "Y" ]; then
You can’t perform that action at this time.