Skip to content

Instantly share code, notes, and snippets.

View steveh's full-sized avatar

Steve Hoeksema steveh

View GitHub Profile
# before
invoiced = Invoiced::Client.new("{API_KEY}")
# after
RateLimiter = Struct.new(:really) do
def method_missing(method, *args)
if can_do_the_thing?
# /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/elasticsearch@1.7.rb
class ElasticsearchAT17 < Formula
desc "Distributed search & analytics engine"
homepage "https://www.elastic.co/products/elasticsearch"
url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.6.tar.gz"
sha256 "78affc30353730ec245dad1f17de242a4ad12cf808eaa87dd878e1ca10ed77df"
revision 1
bottle :unneeded
#!/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)
#!/bin/bash
set -ex
APPLICATION="telemetry" # TODO
REPO="FlickElectric/$APPLICATION"
PROFILE="flick"
OPSWORKS_REGION="us-east-1"
CODEDEPLOY_REGION="ap-southeast-2"
@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