Skip to content

Instantly share code, notes, and snippets.

View ArnaudValensi's full-sized avatar

Arnaud Valensi ArnaudValensi

View GitHub Profile
@ArnaudValensi
ArnaudValensi / express.js
Last active September 8, 2015 13:31 — forked from azat-co/express.js
var express = require('express')
, mongoskin = require('mongoskin')
var app = express()
app.use(express.bodyParser())
var db = mongoskin.db('localhost:27017/test', {safe:true});
app.param('collectionName', function(req, res, next, collectionName){
req.collection = db.collection(collectionName)
@ArnaudValensi
ArnaudValensi / _service.md
Last active October 28, 2015 15:04 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Demo

Creating the service:

service-create

@ArnaudValensi
ArnaudValensi / schemaspy.sh
Created September 11, 2017 16:44 — forked from arnaudbesnier/schemaspy.sh
SchemaSpy setup & usage
brew install graphviz
# dowload https://github.com/schemaspy/schemaspy/releases/download/v6.0.0-rc1/schemaspy-6.0.0-rc1.jar
# download https://jdbc.postgresql.org/download.html
java -jar schemaspy-6.0.0-rc1.jar -t pgsql -db dbname -host localhost:5435 -u username -p ************ -o ./schemaspy -dp postgresql-9.4.1208.jre6.jar -s public -noads