This file contains 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
GET / -> index | |
GET /new -> new | |
POST / -> create | |
GET /:id -> show | |
GET /:id/edit -> edit | |
PUT /:id -> update | |
DELETE /:id -> destroy |
This file contains 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
Array.prototype.forEachSync = function(fn, done) { | |
if(!this.length) return done(null); | |
arr = this.reverse(); | |
function next(err) { | |
if(err) return done(err); | |
var elem = arr.pop(); | |
if(!elem) return done(err); | |
return fn(elem, next); |
This file contains 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
Add a SSH pem-file to keychain | |
ssh-add ~/.ssh/mattyair.pem |
This file contains 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
echo 'export NODE_PATH="'$(npm root -g)'"' >> ~/.bashrc |