Skip to content

Instantly share code, notes, and snippets.

@dizzyd
dizzyd / nc.lua
Last active November 3, 2019 17:02
print("Hello, world 5")
@dizzyd
dizzyd / nc.lua2
Last active November 3, 2019 15:33
print("hello from a public gist 2")
@dizzyd
dizzyd / nc.lua
Last active November 3, 2019 15:47
print("hello, world 7")
@dizzyd
dizzyd / boxstarter.ps1
Last active December 9, 2018 19:33
Dizzy's Boxstarter
# Install Boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# Set: Set-ExecutionPolicy RemoteSigned
# Then: Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#
# Leverages:
# - jessfraz https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f
# - NickCraver https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
@dizzyd
dizzyd / gist:5ac46500cfd69fa50966
Last active August 29, 2015 14:02
Travel Instructions from my boss

I will be traveling under an assumed name, and wearing false whiskers in the style of a Mennonite elder, with a broad black hat and a skinny tie. I will answer to the name Joshua or, alternately, Brother Joshua. When you approach, simply state that the weather is good for pot pies. I will pass the envelope to you and stand up, retrieving my stuffed wallabee, and walking away. When the clock in the stuffed iguana winds down past 30 seconds, yell "Happy Birthday" and run like you are being chased by a stuffed iguana. You will be.

es3:
id: i-5e61c530
ip_address: 107.20.59.168
region: us-east-1
availability zone: us-east-1b
environment: development
es1:
id: i-e462c68a
ip_address: 54.235.34.248
region: us-east-1
@dizzyd
dizzyd / Diff
Last active December 16, 2015 23:08
Building Erlang R16B on SmartOS
diff -u otp_src_R16B.orig/lib/os_mon/c_src/ferrule.c otp_src_R16B/lib/os_mon/c_src/ferrule.c
--- otp_src_R16B.orig/lib/os_mon/c_src/ferrule.c 2013-02-25 19:21:31.000000000 +0000
+++ otp_src_R16B/lib/os_mon/c_src/ferrule.c 2013-05-03 17:15:04.154229600 +0000
@@ -50,7 +50,7 @@
#define FDS_STDIN 0
#define FDS_PIPE 1
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
/* usage: ferrule ownpath */
@task
def check_worker():
# Check the status URL on the loopback
r = run("wget --timeout=5 -t 1 -O- http://localhost:8041 2>&1 >/dev/null", warn_only=True, quiet=True)
if r.return_code != 0:
# Something went wrong; kill all hallwayd.js and attempt to start it
sudo("pkill -9 node", warn_only=True)
sudo("start hallway-worker", warn_only=True)
sudo("start statsd", warn_only=True)

Today is my last day at Basho.

I've been staring at this buffer for twenty minutes now, trying to figure out how to capture the tumult of feelings I have on the topic. I've had the honor of working with some amazingly sharp people who have changed the way I look at teams, code and life. I leave Basho knowing that I'm a better, more complete person than when I joined and I'm deeply grateful for it. It's a bittersweet thing to turn and start a next adventure.

At the same time, I'm deeply excited to be joining the team at Singly and work to make the world a more connected place. I'm looking forward to getting back to my early-stage roots and all the uncertainty and promise these types of endeavours encompass.

So to my Basho coworkers, know that I leave with a grateful and humbled heart to have had the opportunity to work with you. I hope to work with many of you again in the future and believe you will go on to do great things in the world of distributed systems -- as you already have! Go

-module(timeit).
-export([timeit/3,
timeit/4,
timeit/5]).
-export([simple_test/0]).
timeit(Mod, Fun, Arity) ->
timeit(all, Mod, Fun, Arity, undefined).