Skip to content

Instantly share code, notes, and snippets.

View steveh's full-sized avatar

Steve Hoeksema steveh

View GitHub Profile
#!/bin/bash
set -ex
APPLICATION="telemetry" # TODO
REPO="FlickElectric/$APPLICATION"
PROFILE="flick"
OPSWORKS_REGION="us-east-1"
CODEDEPLOY_REGION="ap-southeast-2"
#!/usr/bin/env ruby
require "bundler/setup"
require "shoryuken/cli"
environment_path = File.expand_path("config/environment.rb")
require environment_path if File.exist?(environment_path)
Rails.application.eager_load! if defined?(Rails)
@steveh
steveh / after.tf
Last active January 24, 2017 20:20
module "foo_vpc" {
source = "./vpc"
region = "ap-southeast-2"
partner = "foo"
environment = "production"
cidr = "10.0.0.0/16"
public_offset = 0
private_offset = 2
availability_zones = [
#!/usr/bin/env ruby
require "pathname"
root = Pathname.new(".")
libs = root.children.select(&:directory?).collect(&:realpath)
libs.each do |lib|
Dir.chdir(lib.realpath.to_s) do
system "yard"
require "set"
Command = Struct.new(:direction, :blocks)
class Compass
BEARINGS = [:north, :east, :south, :west]
def initialize
@index = 0
end
[🦃] 1Password 6 (runs under Wine)
[🦃] Airmail (Geary / Thunderbird)
[✅] Atom
[✅] Calculator
[✅] Calendar (Evolution)
[✅] Charles
[✅] Colloquy (HexChat)
[✅] Contacts (Evolution)
[✅] DaisyDisk (Baobab)
[✅] Dash (Zeal)
mgcrea/unifi-video:3
linuxserver/unifi
grafana/grafana
influxdb
postgres
mariadb
owncloud
linuxserver/rutorrent
dperson/emby
kylemanna/openvpn
*** Targets ***
probe = FPing
menu = Top
title = Network Latency Grapher
remark = Kotiri
+ NZ
#!/usr/bin/env bash
set -e
sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get -y update && sudo apt-get -y install yarn
import csv
import datetime
import serial
import time
import urllib
import math
from time import strftime
from sense_hat import SenseHat
from decimal import Decimal