Skip to content

Instantly share code, notes, and snippets.

View kevinburkeshyp's full-sized avatar

Kevin Burke kevinburkeshyp

View GitHub Profile
-w "\n"
root@vagrant-ubuntu-trusty-64:~# dpkg --contents /var/cache/apt/archives/docker-engine_1.9.1-0~trusty_amd64.deb
drwxr-xr-x root/root 0 2015-11-20 13:13 ./
drwxr-xr-x root/root 0 2015-11-20 13:12 ./etc/
drwxr-xr-x root/root 0 2015-11-20 13:12 ./etc/init/
-rw-r--r-- root/root 1533 2015-11-20 12:47 ./etc/init/docker.conf
drwxr-xr-x root/root 0 2015-11-20 13:12 ./etc/default/
-rw-r--r-- root/root 493 2015-11-20 12:47 ./etc/default/docker
drwxr-xr-x root/root 0 2015-11-20 13:12 ./etc/init.d/
-rwxr-xr-x root/root 3585 2015-11-20 12:47 ./etc/init.d/docker
drwxr-xr-x root/root 0 2015-11-20 13:12 ./etc/bash_completion.d/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Database connection interface modeled heavily on Go's database/sql library.
#
# If you need to make a query, call:
#
# DBConnection.get (err, conn) ->
# conn.query 'SELECT foo FROM bar', (err, result) ->
# console.log result.rows[0]
# conn.release()
#
# You'll need to release the connection yourself. It's not recommended, but
@kevinburkeshyp
kevinburkeshyp / this-is-normal.md
Last active August 29, 2015 14:26
This is Normal
  1. CircleCI hung when trying to fetch page results via AJAX. I normally trigger a full refresh of the page when the tests finish to view the output.

  2. this happened on Github:

  3. Github image embed via raw.github.com is broken:

    While attempting to link to this image the Monosnap URL I had previously posted broke.

@kevinburkeshyp
kevinburkeshyp / talks.md
Last active August 29, 2015 14:24
Upcoming talks at Shyp - 7/15 and 7/22

We're hosting talks at Shyp next Wednesday and the Wednesday after that. Hope you can join us! Here are the talks:

Want to get notified when we host talks in the future? email me here: burke+talks@shyp.com

Kevin Burke - Hacking Roller Coaster Tycoon with Genetic Algorithms and Go

12pm, July 15

585 Howard St. 3rd floor

var d = Date.now();
// Subtract 5 minutes
d = new Date(d - 5 * 60 * 1000)
// Add ten minutes
d = new Date(d + 10 * 60 * 1000)
console.log(d);
MailchimpError = (function() {
function MailchimpError(status, name, error) {
this.message = error;
this.status = status;
this.name = name;
// handle the case where you don't invoke this with `new`
if (!(this instanceof MailchimpError)) {
return new MailchimpError(this.message);
}
Error.call(this);
> r = require('raven');
> console.log(r);
{ version: '0.7.2',
Client:
{ [Function: Client]
super_: { [Function: EventEmitter] listenerCount: [Function] } },
patchGlobal: [Function: patchGlobal],
utils:
{ getAuthHeader: [Function: getAuthHeader],
@kevinburkeshyp
kevinburkeshyp / testrunner.js
Created January 30, 2015 19:38
Sails test runner
var time = Date.now();
require('sails').lift({
models: {
migrate: "safe"
},
verbose: true,
log: {
level: 'silly'
},
hooks: {