Skip to content

Instantly share code, notes, and snippets.

View Stubbs's full-sized avatar

Stuart Grimshaw Stubbs

  • Sheffield, South Yorkshire, UK
View GitHub Profile
actionid: py37
msg: getenv
cmdargs: ['/usr/bin/env', 'LANG=C.UTF-8', 'pip', 'install', '-r/Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt', '-c/Users/stuart/Projects/HomeAssistant/home-assistant/homeassistant/package_constraints.txt']
Collecting asynctest==0.12.2 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 5))
Using cached https://files.pythonhosted.org/packages/ee/29/9a9289a11b56ceb28dc18fc5b1af9b4223a387269252bb0f349c9da2ed10/asynctest-0.12.2-py3-none-any.whl
Collecting coveralls==1.2.0 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 6))
Using cached https://files.pythonhosted.org/packages/7e/26/7a820800615866b624cb5612f7f661405f713b2292cd94ace8b648705747/coveralls-1.2.0-py2.py3-none-any.whl
Collecting flake8-docstrings==1.3.0 (from -r /Users/stuart/Projects/HomeAssistant/home-assistant/requirements_test_all.txt (line 7))
Using cached https://files.pythonhosted.org/packages/4e/a
NAME=/mnt/hendry/media/Videos/cctv/cctv
if [[ -e $NAME.h264 ]] ; then
i=0
while [[ -e $NAME-$i.h264 ]] ; do
let i++
done
NAME=$NAME-$i
fi
/usr/bin/raspivid -n -t 30000 -o $NAME.h264
@Stubbs
Stubbs / Debounce Node
Created December 22, 2016 14:22
Debounce node for Node Red.
// A little function to debounce messages
// that tend to flip flop a lot
// Uses the message topic as the key.
var debounceTracker = global.get("debounceTracker");
if (!debounceTracker) {
debounceTracker = {};
}
@Stubbs
Stubbs / keybase.md
Last active February 5, 2016 20:18

Keybase proof

I hereby claim:

  • I am stubbs on github.
  • I am stubbs (https://keybase.io/stubbs) on keybase.
  • I have a public key whose fingerprint is 5E48 F78E 2904 478C F209 4A37 C446 73C2 684C F089

To claim this, I am signing this object:

Verifying that +stuartgrimshaw is my blockchain ID. https://onename.com/stuartgrimshaw
#!/bin/sh
# Download to your project's .git/hooks/prepare-commit-msg and make it executable.
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
Verifying that +stubbs is my blockchain ID. https://onename.com/stubbs
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
clean: ['build'],
concurrent: {
dev: ['nodemon:app', 'webpack:dev'],
options: {
logConcurrentOutput: true
}
@Stubbs
Stubbs / main.yml
Created March 28, 2015 14:31
Ansible Playbook to install PHP7
- name: Install Packages Needed To Compile PHP 7
apt: pkg={{ item }} state=latest
with_items:
- git
- autoconf
- bison
- libxml2-dev
- libbz2-dev
- libmcrypt-dev
- libcurl4-openssl-dev

Keybase proof

I hereby claim:

  • I am stubbs on github.
  • I am stubbs (https://keybase.io/stubbs) on keybase.
  • I have a public key whose fingerprint is 74A6 E90F 9B31 AC04 CE3A D430 7596 314A 6514 191E

To claim this, I am signing this object: