Skip to content

Instantly share code, notes, and snippets.

View stjohnjohnson's full-sized avatar

St. John Johnson stjohnjohnson

View GitHub Profile
- platform: mqtt
name: "Office Lights"
state_topic: "smartthings/Office Lights/switch"
command_topic: "smartthings/Office Lights/switch"
brightness_state_topic: "smartthings/Office Lights/level"
brightness_command_topic: "smartthings/Office Lights/level"
brightness_scale: 99
payload_on: "on"
payload_off: "off"
input_binary:
scene_thing:
name: Night Mode
initial: off
icon: mdi:car
automation:
- alias: Go to night mode
trigger:
platform: state
/**
* Raspberry Pi - IP Camera
*
* Copyright 2015 st.john.johnson@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@stjohnjohnson
stjohnjohnson / apt-get
Last active October 28, 2015 21:36
2015-10-28 Blog post on stj.me
sudo apt-get install gstreamer1.0-alsa gstreamer1.0-clutter gstreamer1.0-doc gstreamer1.0-fluendo-mp3 \
gstreamer1.0-gnonlin gstreamer1.0-libav gstreamer1.0-nice gstreamer1.0-omx \
gstreamer1.0-packagekit gstreamer1.0-plugins-bad gstreamer1.0-plugins-base-apps \
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly \
gstreamer1.0-pulseaudio gstreamer1.0-tools gstreamer1.0-vaapi gstreamer1.0-x \
libgstreamer1.0-0 libgstreamer1.0-0-dbg libgstreamer1.0-dev
@stjohnjohnson
stjohnjohnson / Gemfile
Last active September 1, 2015 06:51
2015-09-01 Blog post on stj.me Raw
source 'https://rubygems.org'
ruby '2.2.3'
# JavaScript Exec tool
gem 'therubyracer'
# Jekyll and plugins
gem 'jekyll'
gem 'jekyll-timeago'
gem 'jekyll-gist'
@stjohnjohnson
stjohnjohnson / Gemfile
Last active September 1, 2015 06:50
2015-08-30 Blog post on stj.me
source 'https://rubygems.org'
ruby '2.2.3'
# JavaScript Exec tool
gem 'therubyracer'
# Jekyll and plugins
gem 'jekyll'
gem 'jekyll-timeago'
gem 'jekyll-gist'

Keybase proof

I hereby claim:

  • I am stjohnjohnson on github.
  • I am stjohnjohnson (https://keybase.io/stjohnjohnson) on keybase.
  • I have a public key whose fingerprint is BFAF F4DB DD92 967A DB02 EA0B 4783 E8EF 5AA5 A659

To claim this, I am signing this object:

<!--
Copyright 2013, Opscode, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,