This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# before | |
invoiced = Invoiced::Client.new("{API_KEY}") | |
# after | |
RateLimiter = Struct.new(:really) do | |
def method_missing(method, *args) | |
if can_do_the_thing? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
APPLICATION="telemetry" # TODO | |
REPO="FlickElectric/$APPLICATION" | |
PROFILE="flick" | |
OPSWORKS_REGION="us-east-1" | |
CODEDEPLOY_REGION="ap-southeast-2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "set" | |
Command = Struct.new(:direction, :blocks) | |
class Compass | |
BEARINGS = [:north, :east, :south, :west] | |
def initialize | |
@index = 0 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[🦃] 1Password 6 (runs under Wine) | |
[🦃] Airmail (Geary / Thunderbird) | |
[✅] Atom | |
[✅] Calculator | |
[✅] Calendar (Evolution) | |
[✅] Charles | |
[✅] Colloquy (HexChat) | |
[✅] Contacts (Evolution) | |
[✅] DaisyDisk (Baobab) | |
[✅] Dash (Zeal) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mgcrea/unifi-video:3 | |
linuxserver/unifi | |
grafana/grafana | |
influxdb | |
postgres | |
mariadb | |
owncloud | |
linuxserver/rutorrent | |
dperson/emby | |
kylemanna/openvpn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Targets *** | |
probe = FPing | |
menu = Top | |
title = Network Latency Grapher | |
remark = Kotiri | |
+ NZ |