Skip to content

Instantly share code, notes, and snippets.

View theworkflow's full-sized avatar

Jeremiah Harlan theworkflow

View GitHub Profile
@jackboberg
jackboberg / example.js
Last active April 11, 2017 20:39
asynchronously iterate on mongodb records
const { MongoClient } = require('mongodb')
const MongoSeries = require('./mongo-run-series')
const { host } = process.env // mongodb://localhost:27017/database
const task = (doc, done) => {
// do something async with the mongodb document
done(null, {})
}
@fiveisprime
fiveisprime / quick-start
Last active October 23, 2015 15:26
Modulus Meteor Quickstart
$ meteor create --example leaderboard
$ cd leaderboard
$ modulus project create leaderboard -r node.js -s 512
$ modulus env set ROOT_URL $(modulus project list | grep leaderboard | awk '{print $4}') -p leaderboard
$ modulus addons add mongo:base -p leaderboard
$ modulus deploy -p leaderboard
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote