Skip to content

Instantly share code, notes, and snippets.

Wade Simmons wadey

Block or report user

Report or block wadey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View frame-protocol.js
A simple new-line delimited JSON protocol with upgrades.
Receiving Usage:
protocol = require('./frame-protocol');
// parsing data
parser = protocol.Parser();
protocool / caveatPatchor.js
Created Feb 14, 2011
Sample caveatPatchor.js file for use in Propane 1.1.2 and above
View caveatPatchor.js
As of version 1.1.2, Propane will load and execute the contents of
~Library/Application Support/Propane/unsupported/caveatPatchor.js
immediately following the execution of its own enhancer.js file.
You can use this mechanism to add your own customizations to Campfire
in Propane.
Below you'll find two customization examples.
srid / subcommand.go
Created Oct 24, 2012
golang simple subcommand parser
View subcommand.go
// A simple sub command parser based on the flag package
package subcommand
import (
type subCommand interface {
creationix / run.js
Last active Nov 27, 2017
A tiny generator helper for consuming callback code directly
View run.js
function run(generator) {
var iterator = generator(resume);
var data = null, yielded = false;;
yielded = true;
function check() {
while (data && yielded) {
aaronjensen / edit_data_bag.rb
Created Nov 21, 2012
Edit encrypted data bags for use with chef-solo and knife-solo
View edit_data_bag.rb
#!/usr/bin/env ruby
Dir.chdir File.join(__FILE__, "../..")
unless ENV['EDITOR']
puts "No EDITOR found. Try:"
puts "export EDITOR=vim"
exit 1
unless ARGV.count == 2
View find_my_friends.js
var options, req, request;
request = require('request');
options = {
uri: '{account_id}/{unique_device_id}/minCallback/selFriend/refreshClient',
method: 'POST',
headers: {
'X-Apple-AuthScheme': 'Forever',
'Content-type': 'application/json'
sjl / nextlast.vim
Created Sep 21, 2012
next/last text objects
View nextlast.vim
" Next and Last {{{
" Motion for "next/last object". "Last" here means "previous", not "final".
" Unfortunately the "p" motion was already taken for paragraphs.
" Next acts on the next object of the given type in the current line, last acts
" on the previous object of the given type in the current line.
" Currently only works for (, [, {, b, r, B, ', and ".
View c10k-test-client.c
// HTTP client for testing high connection concurrency
// Authors: Richard Jones and Rasmus Andersson
// Released in the public domain. No restrictions, no support.
#include <sys/types.h>
#include <sys/time.h>
#include <sys/queue.h>
#include <stdlib.h>
#include <err.h>
#include <event.h>
#include <evhttp.h>
h12w /
Last active Jul 21, 2019 does automatic checking on a Go package and its sub-packages.
# The script does automatic checking on a Go package and its sub-packages, including:
# 1. gofmt (
# 2. goimports (
# 3. golint (
# 4. go vet (
# 5. race detector (
# 6. test coverage (
set -e
elasticdog / vault-cp
Created Jul 27, 2018
A script to copy Vault secrets from one path to another
View vault-cp
#!/usr/bin/env bash
# ensure we were given two command line arguments
if [[ $# -ne 2 ]]; then
echo 'usage: vault-cp SOURCE DEST' >&2
exit 1
You can’t perform that action at this time.