Skip to content

Instantly share code, notes, and snippets.

View particlebanana's full-sized avatar

Cody Stoltman particlebanana

View GitHub Profile
@particlebanana
particlebanana / connections.js
Created January 25, 2016 20:48
Mongo Connections Issue
module.exports.connections = {
localMongoDb: {
adapter: 'sails-mongo',
host: 'localhost',
port: 27017,
database: 'mongo-one'
},
localMongoDbTwo: {
@particlebanana
particlebanana / set-npmrc.js
Created June 9, 2016 22:56
Script to dynamically build up .npmrc in production
// ╔═╗╦═╗╔═╗╦╔╗╔╔═╗╔╦╗╔═╗╦ ╦ ┌─┐┌─┐┌┬┐ ┌┐┌┌─┐┌┬┐┬─┐┌─┐ ┌─┐┬┬ ┌─┐
// ╠═╝╠╦╝║╣ ║║║║╚═╗ ║ ╠═╣║ ║ └─┐├┤ │ │││├─┘│││├┬┘│ ├┤ ││ ├┤
// ╩ ╩╚═╚═╝╩╝╚╝╚═╝ ╩ ╩ ╩╩═╝╩═╝ └─┘└─┘ ┴ ┘└┘┴ ┴ ┴┴└─└─┘ └ ┴┴─┘└─┘
//
// Used in production to install npm private modules
if(process.env.NODE_ENV !== 'production') {
return;
}
var fs = require('fs');
@particlebanana
particlebanana / repos.md
Last active September 22, 2016 00:22
Waterline Repos

Nu Waterline Repos

These are the various pieces that involved in the new version of Waterline. It's a major update that brings in a lot of low-level functionality into userland code.

Top Level

Waterline Query Docs

URL: https://github.com/treelinehq/waterline-query-docs

@particlebanana
particlebanana / keybase.md
Created October 23, 2017 20:45
Keybase Proof

Keybase proof

I hereby claim:

  • I am particlebanana on github.
  • I am particlebanana (https://keybase.io/particlebanana) on keybase.
  • I have a public key ASAh5PURM8Grk0dq4iEGRXSFQ2QmMBy-JpMxUAW0_4TCXwo

To claim this, I am signing this object: