Skip to content

Instantly share code, notes, and snippets.

View GraemeF's full-sized avatar

Graeme Foster GraemeF

View GitHub Profile
@GraemeF
GraemeF / Presence-activated Light.yaml
Created November 5, 2023 11:24
Presence-activated Light
blueprint:
name: Presence-activated Light
description: Turn on a light when presence is detected.
homeassistant:
min_version: 2023.8.0
domain: automation
source_url: https://community.home-assistant.io/t/presence-sensor-light-automation/564590
input:
presence_entity:
name: Presence Sensor
@GraemeF
GraemeF / uk-bounding-box.geojson
Last active May 14, 2019 16:02 — forked from jeffreymorganio/uk-bounding-box.geojson
Longitude and latitude bounding box around the UK
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Downcast Podcasts</title>
</head>
<body>
<outline text="Weekend Confirmed: The Video Game Show" type="rss" title="Weekend Confirmed: The Video Game Show" xmlUrl="http://www.shacknews.com/extras/podcast/weekendconfirmed.xml" htmlUrl="http://www.shacknews.com/" />
<outline text="WebDevRadio.com - web development podcast" type="rss" title="WebDevRadio.com - web development podcast" xmlUrl="http://feeds.feedburner.com/WebdevradioPodcastHome" htmlUrl="http://webdevradio.com" />
<outline text="Upfront Podcast" type="rss" title="Upfront Podcast" xmlUrl="http://upfrontpodcast.com/feed.xml" htmlUrl="http://upfrontpodcast.com" />
<outline text="Uninformed Opinions" type="rss" title="Uninformed Opinions" xmlUrl="http://feeds.feedburner.com/UninformedOpinionsPodcast" htmlUrl="http://uninformedopinions.libsyn.com" />
Program received signal SIGSEGV, Segmentation fault.
0x00007fff98797d46 in __kill ()
(gdb) bt
#0 0x00007fff98797d46 in __kill ()
@GraemeF
GraemeF / gist:2579706
Created May 2, 2012 19:46
npm errors
% npm install --save-dev mocha
npm http GET https://registry.npmjs.org/mocha
npm http 503 https://registry.npmjs.org/mocha
npm ERR! registry error parsing json
npm http GET https://registry.npmjs.org/jade/0.20.3
npm http GET https://registry.npmjs.org/diff/1.0.2
npm http GET https://registry.npmjs.org/growl
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/commander
npm http 503 https://registry.npmjs.org/jade/0.20.3
trello [master●] % npm update -g
npm http GET https://registry.npmjs.org/cassandra
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/nave
npm http GET https://registry.npmjs.org/nodemon
npm http GET https://registry.npmjs.org/ultra-repl
npm http GET https://registry.npmjs.org/npm
npm http 304 https://registry.npmjs.org/cassandra
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/nodemon
% npm install sinon-chai
npm http GET https://registry.npmjs.org/sinon-chai
npm http 200 https://registry.npmjs.org/sinon-chai
npm http GET https://registry.npmjs.org/sinon-chai/-/sinon-chai-1.1.0.tgz
npm http 200 https://registry.npmjs.org/sinon-chai/-/sinon-chai-1.1.0.tgz
npm ERR! Error: EACCES, permission denied '/var/folders/b_/ltxtv5656b3_bzgfxbh_khw40000gn/T/npm-1333274535052/1333274535052-0.0813893552403897/___package.npm/package/lib/sinon-chai.js'
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR!
@GraemeF
GraemeF / gist:2208386
Created March 26, 2012 18:17
Error starting cassandra in vagrant
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] Running provisioner: Vagrant::Provisioners::ChefSolo...
[default] Generating chef JSON and uploading...
[default] Running chef-solo...
stdin: is not a tty
[Mon, 26 Mar 2012 11:15:51 -0700] INFO: *** Chef 0.10.2 ***
[Mon, 26 Mar 2012 11:15:52 -0700] INFO: Setting the run_list to ["recipe[cassandra::default]"] from JSON
[Mon, 26 Mar 2012 11:15:52 -0700] INFO: Run List is [recipe[cassandra::default]]
@GraemeF
GraemeF / foo-spec.js
Created January 29, 2012 08:34
requireWithDeps
var requireWithDeps = require('./requireWithDeps');
var sinon = require('sinon');
var fakejQuery = {
doSomething: sinon.stub()
};
var Foo = requireWithDeps('./Foo.js', {'jquery': fakejQuery});
var fooToTest = new Foo();
@GraemeF
GraemeF / x.html
Created January 2, 2012 20:47
Hello world
<p>Name: <input data-bind="value: name"/></p>
<h2>Hello, <span data-bind="text: name"> </span>!</h2>