Skip to content

Instantly share code, notes, and snippets.

View titanous's full-sized avatar

Jonathan Rudenberg titanous

View GitHub Profile
$ go test -race ./...
? github.com/mitchellh/packer [no test files]
ok github.com/mitchellh/packer/builder/amazonebs 1.065s
ok github.com/mitchellh/packer/builder/common 1.044s
ok github.com/mitchellh/packer/builder/digitalocean 1.065s
ok github.com/mitchellh/packer/builder/virtualbox 1.083s
ok github.com/mitchellh/packer/builder/vmware 1.061s
ok github.com/mitchellh/packer/command/build 1.036s
? github.com/mitchellh/packer/command/validate [no test files]
==================
package main
import (
"crypto/rand"
"testing"
)
type item struct {
A, B, C string
}
From: Jonathan Rudenberg <jonathan@titanous.com>
Subject: HEAD responses contain body
Date: Thu, 13 Jun 2013 12:09:43 -0400
To: mongrel-unicorn@rubyforge.org
RFC 2616 section 9.4[1] states:
> The HEAD method is identical to GET except that the server MUST NOT
> return a message-body in the response.
package main
import (
"database/sql"
"fmt"
_ "code.google.com/p/go-sqlite/go1/sqlite3"
)
var a string
package main
import (
"bytes"
"io/ioutil"
"net/http"
. "launchpad.net/gocheck"
)
@titanous
titanous / .vimrc
Last active December 17, 2015 20:58
au Filetype go set noexpandtab ts=4 sw=4 sts=4 nolist makeprg=go textwidth=80
autocmd FileType go autocmd BufWritePre <buffer> Fmt
@titanous
titanous / hawk_vectors.go
Last active December 17, 2015 14:59
Hawk test vector generator
package main
import (
"crypto/sha256"
"fmt"
"strconv"
"time"
"github.com/tent/hawk-go"
)
@titanous
titanous / 0-nsprogress.mm
Last active December 17, 2015 11:49
NSProgress classdump from Foundation.framework and usage in Chrome
/*
* Generated by class-dump 3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard.
*/
@protocol NSProgressPublisher <NSObject>
- (oneway void)appWithBundleID:(id)arg1 didAcknowledgeWithSuccess:(BOOL)arg2;
- (oneway void)pause;
- (oneway void)cancel;
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
@titanous
titanous / nginxTentConfig
Created October 2, 2012 04:59
nginx personal site / tent side by side config example
here's tent running side-by-side with two express node.js apps:
tent is on 1002
my site is on 80
promo page for a game i'm working on is on 1003
upstream tent {
server 0.0.0.0:1002;
}