Skip to content

Instantly share code, notes, and snippets.

@tmurphree
tmurphree / npm-reference.md
Last active September 11, 2017 03:22
npm-reference

NPM reference

List global libraries

npm list -g --depth=0

Remove global libraries

npm uninstall -g \

@tmurphree
tmurphree / docker.md
Last active April 21, 2017 16:51
Docker

DockerMoby Cheat Sheet

Content started from wsargent's github.

A Tasteful Plug for Lightbend

I work for Lightbend on the Play team. I think the company is awesome, and if you're looking at containers because you're moving to the cloud and thinking about distributed systems, you should keep reading.

Lightbend make microservices happen. Developers use Lagom to put together resilient ("chaos monkey resistant") microservices. In production, there's Conductr to orchestrate containers -- including Docker. Finally, there's monitoring to tell you wha

@tmurphree
tmurphree / restful_routes.md
Created October 31, 2016 17:27 — forked from alexpchin/restful_routes.md
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
@tmurphree
tmurphree / postgres-cheatsheet.md
Last active October 31, 2016 21:29 — forked from Kartones/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PostgreSQL

Links

Selected Commands

Command Description Link
@tmurphree
tmurphree / mongoose-cheatsheet.md
Last active April 17, 2024 18:50 — forked from subfuzion/mongoose-cheatsheet.md
mongoose cheatsheet

Definitely not comprehensive. This is meant to be a basic memory aid with links to get more details. I'll add to it over time.

Install

$ npm install mongoose --save

Connect

const mongoose = require('mongoose');

const connectionString = process.env.MONGO_URI || 'mongodb://localhost/databasenamegoeshere';