Skip to content

Instantly share code, notes, and snippets.

View OTR Fingerprints
-----BEGIN PGP MESSAGE-----
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: Hello, Nasty
owGbwMvMwMVop97PPs1Jk5/x9JYkhmBex5tumXnpqUUFRZl5JVYKjq6OrqZmZpYK
ppZuRsaOhoYKZgZu5m6OlqYKro7mrsbGBo4KLs4W5saWlgZcKDqdTA0dTV2M3RTc
XIAqLY0MFCwNLU3NDQyMFMwNDcyNDVwMFFwsDEwNnYzNUHWamBq4uBk6OyuYGbtZ
ODlZAC03czFwMnIxVHB0cjZ2dnRzVDB2tDCydDF14upkqmFhYORiSGNlAjk+XqSB
AQj0GDQyi4tLU4t00wqKHPLySxJLMvPzivXyC1LzCtIL9NIy00oyMvKLilNzE/P0
8lJLnMxcnY0MTQ1MgW41NHYzcXZ0NXe2NHczdjUyt3AzMLc0MzEysjRwY+DiFICF
View restart-cbfs
#!/bin/sh
nodes=`cbfsclient http://cbfs:8484/ info -t '{{ range $n, $v := .Nodes }} {{ $n }}.cbfs.west.spy.net {{ end }}'`
for n in $nodes
do
echo $n
curl -i -XPOST http://$n:8484/.cbfs/exit/
sleep 2
done
View keybase.md

Keybase proof

I hereby claim:

  • I am dustin on github.
  • I am dlsspy (https://keybase.io/dlsspy) on keybase.
  • I have a public key whose fingerprint is B6EC 2150 5EA7 13F4 CAE7 C97F 3E27 8F07 9642 290F

To claim this, I am signing this object:

@dustin
dustin / cat.rb
Created Jul 30, 2008
Object concatenation class. Combine two objects to get the union of their properties and behaviors.
View cat.rb
require 'core_ext'
module Metahackery
# Object concatentation, singleton multiple inheritence, singleton mixin, etc...
# This object allows you to smash two objects together into one object that
# appears to be any of the sub-objects depending on how you look at it.
class Cat
instance_methods.each { |m| undef_method m unless m =~ /(^__|^nil\?$|^send$|proxy_|^object_id$)/ }
@dustin
dustin / README.md
Last active Aug 29, 2015
WS2812 Capture from strandtest
View README.md
@dustin
dustin / README.md
Last active Aug 29, 2015
WS2812 demo with 13 LEDs
View README.md
@dustin
dustin / README.md
Last active Aug 29, 2015
WS2812 Capture from strandtest
View README.md
View categorizer.go
package main
import (
"encoding/csv"
"fmt"
"io"
"log"
"math"
"os"
"path"
@dustin
dustin / sitemap-walk.py
Created Oct 26, 2008
A sitemap spider tool.
View sitemap-walk.py
#!/usr/bin/env python
"""
Walk a sitemap and report timings and stuff.
Copyright (c) 2008 Dustin Sallings <dustin@spy.net>
"""
import sys
import time
import getopt
View who-wrote-this.py
#!/usr/bin/env python
"""
A script to tell you who actually wrote your current codebase.
Usage:
git ls-files | xargs -n 1 git annotate | ./who-wrote-this.py
Copyright (c) 2008 Dustin Sallings <dustin@spy.net>
"""