This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-w "\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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: [email protected]
12pm, July 15
585 Howard St. 3rd floor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var time = Date.now(); | |
require('sails').lift({ | |
models: { | |
migrate: "safe" | |
}, | |
verbose: true, | |
log: { | |
level: 'silly' | |
}, | |
hooks: { |