Skip to content

Instantly share code, notes, and snippets.

View rossnelson's full-sized avatar
💀

Ross Nelson rossnelson

💀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rossnelson on github.
  • I am rossnelson (https://keybase.io/rossnelson) on keybase.
  • I have a public key ASDwEIAenmga0BCj6sYqj1O0zS55CCd9fbU0LQ0Hu_piZQo

To claim this, I am signing this object:

package process
import (
"encoding/json"
"fmt"
"github.com/simiancreative/simiango/logger"
)
var processors map[KindID]Processor
const repl = require('repl');
const { Driver } = require("zwave-js");
const networkKey = Buffer.from(process.env.HAB_DEVICE_ID.replace(/-/g, '')
.split('')
.slice(1, 17));
// Tell the driver which serial port to use
const driver = new Driver("/dev/zwaveAeotec", {
const _ = require("lodash");
const manifest = {
common: {
device_id: {
compressed: "d",
},
access_method_id: {
compressed: "ami",
},
@rossnelson
rossnelson / docker-compose.yaml
Created January 26, 2021 14:24
golang and ms sqlserver using sqlx and go-mssqldb
version: '3'
services:
mssql:
image: mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Melon40twomonkeys
ports:
- '1433:1433'
.nav {
overflow: hidden;
}
.nav .menu-item {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
@rossnelson
rossnelson / Other
Last active October 28, 2019 18:17
<CommandClass id="67" name="COMMAND_CLASS_THERMOSTAT_SETPOINT">
<Compatibility>
<Base>0</Base>
</Compatibility>
<State>
<CCVersion>2</CCVersion>
<InNif>true</InNif>
<StaticRequests>0</StaticRequests>
</State>
<Instance index="1" />
@rossnelson
rossnelson / cloudwatch-queries.log
Last active July 11, 2018 22:17
stashed hab troubleshooting queries
{ $.message = "Commands dequeued for 9a9408d0-7944-11e8-838b-755f39858ca5*" }
{ $.message = "Queuing Commands" && $.meta.device_id = 7648e670-794a-11e8-a713-ffdab1da4ab3 }
{ $.message = "Started GET \"/integrations/devices/*/commands*" && $.customer = "hab-plaza*" }
const _ = require('lodash');
module.exports = App => {
return function composer(superclass) {
const mixins = superclass.mixins();
mixins.forEach(mixin => {
mixin = App.get(`Resources.Mixins.${mixin}`);
defineInstanceFunctions(superclass, mixin);
@rossnelson
rossnelson / user_status.sql
Created April 24, 2018 17:50
Get the statuses for a user's active tv shows and sort them by next unwatched episode
WITH episodes as (
select
_status.id,
user_id,
show_id,
episode->>'id' episode_id,
_show.remote_show->>'SeriesName' series_name,
episode->>'SeasonNumber' season_index,
episode->>'EpisodeNumber' episode_index,