Skip to content

Instantly share code, notes, and snippets.

View jacobtomlinson's full-sized avatar

Jacob Tomlinson jacobtomlinson

View GitHub Profile
@jacobtomlinson
jacobtomlinson / gist:2e5abad238ec47b46cd4
Last active August 29, 2015 14:10
datapoint-python hourly cron log file for site 'Clifton Hill Ski Slope Exeter'
Thu Sep 25 10:00:00 2014 - Partly cloudy (day)
Thu Sep 25 11:00:02 2014 - Sunny day
Thu Sep 25 12:00:03 2014 - Sunny day
Thu Sep 25 13:00:02 2014 - Sunny day
Thu Sep 25 14:00:04 2014 - Partly cloudy (day)
Thu Sep 25 15:00:10 2014 - Partly cloudy (day)
Thu Sep 25 16:00:05 2014 - Cloudy
Thu Sep 25 17:00:04 2014 - Partly cloudy (day)
Thu Sep 25 18:00:04 2014 - Partly cloudy (day)
Thu Sep 25 19:00:06 2014 - Clear night
"""
Support for ONVIF Cameras with FFmpeg as decoder.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.onvif/
"""
import asyncio
import logging
import os
import voluptuous as vol
@jacobtomlinson
jacobtomlinson / get-toolbox.sh
Last active November 22, 2017 21:23
Docker toolbox for linux
#!/bin/bash
# A quick script to install Docker Engine and Compose
# Run with sudo
# Install Docker Engine
curl -sSL https://get.docker.com/ | sh
# Start Docker
# TODO update to handle multiple distros
service docker start
@jacobtomlinson
jacobtomlinson / Starting with daskernetes.ipynb
Last active February 21, 2018 09:17
Starting with daskernetes.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / skill-test-gists.ipynb
Created July 18, 2018 19:27
An ipynb opsdroid skill for testing with
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / skill-ping.py
Created July 20, 2018 18:51
Ping opsdroid skill for testing
from opsdroid.matchers import match_regex
@match_regex(r'ping')
async def ping(opsdroid, config, message):
await message.respond('pong')
@jacobtomlinson
jacobtomlinson / Performance comparison of s3fs, goofys and pysssix.ipynb
Created August 2, 2018 13:57
I've been experimenting with an ~80GB zarr file created with xarray and wanted to compare performance between using s3fs and FUSE (goofys and pysssix specifically).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / wave.ipynb
Last active November 15, 2018 16:20
opsdroid skill to wave at someone
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / wave.ipynb
Created November 17, 2018 09:11
wave react
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jacobtomlinson
jacobtomlinson / gist:8361722
Last active December 14, 2018 13:19
Reload VirtualBox kexts on OS X 10.9 Mavericks
#!/bin/bash
# Reload Virtual Box Kexts
unload() {
kextstat | grep "org.virtualbox.kext.VBoxUSB" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxUSB
kextstat | grep "org.virtualbox.kext.VBoxNetFlt" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetFlt
kextstat | grep "org.virtualbox.kext.VBoxNetAdp" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxNetAdp
kextstat | grep "org.virtualbox.kext.VBoxDrv" > /dev/null 2>&1 && sudo kextunload -b org.virtualbox.kext.VBoxDrv
}