Skip to content

Instantly share code, notes, and snippets.

View ismaelhamed's full-sized avatar
🚀
lezduit

Ismael Hamed ismaelhamed

🚀
lezduit
  • Schneider Electric
  • Spain
  • 04:31 (UTC +02:00)
View GitHub Profile
@ismaelhamed
ismaelhamed / rebaselock.pre-rebase.ps1
Last active September 29, 2016 05:47 — forked from uasi/rebaselock.pre-rebase.sh
A pre-rebase hook that refuses to rebase if "branch.${BRANCH}.rebaselock" is true.
git config branch.master.rebaselock true

NPM Cheat Sheet

(Full description and list of commands at - https://npmjs.org/doc/index.html)

##List of less common (however useful) NPM commands

######Install a package and also update package.json with the installed version and package name.

var mongoose = require('mongoose');
mongoose.connect('localhost', 'testing_multiTenant');
/**
* User schema.
*/
var UserSchema = new mongoose.Schema({
name: String
, prefix: { type: String, required: true }