Skip to content

Instantly share code, notes, and snippets.

@dcarney
dcarney / godep2gb.go
Created June 8, 2015 15:59
Vendors a set of go dependencies using 'gb-vendor', by reading a godep manifest (e.g. Godeps.json)
// aids in converting a godep project to a gb project:
//
// reads a Godeps.json manifest and uses the 'gb-vendor' plugin to vendor the
// same revision of each dependency into a gb-based project.
//
// Example:
// To vendor all the dependencies of the godep-based project at /go/src/github.com/username/foo
// into the new gb-based project at /path/to/gb/proj, run the following:
//
// $ go run godep2gb.go -gbroot=/path/to/gb/proj/ -godeps=/go/src/github.com/username/foo/Godeps/Godeps.json
@dbehnke
dbehnke / client.py
Created May 31, 2015 03:29
Python 3.5 async await and asyncio
"""
client.py - AsyncIO Server using StreamReader and StreamWriter
This will create 200 client connections to a server running server.py
It will handshake and run similar to this:
Server: HELLO
Client: WORLD
@dbehnke
dbehnke / trusty-post-install.sh
Created March 5, 2014 17:54
Ubuntu 14.04 LTS (Trusty) Post Install Tasks
#!/bin/bash
#Post Install for Ubuntu 14.04 LTS (Trusty)
#copy and paste and run - don't run this script directly
#you are going to need to reboot after each part.
echo "Don't run this script directly, copy and paste"
echo "the parts you will use! See the file's comments for information."
echo ""
echo "The script will run part 1 for you.. then read the file for rest!"