Skip to content

Instantly share code, notes, and snippets.

View ops-gaurav's full-sized avatar
:octocat:
may the forks be with you

Gaurav Sharma ops-gaurav

:octocat:
may the forks be with you
View GitHub Profile
@Mirabis
Mirabis / docker-compose.yml
Created April 24, 2016 10:55
Docker-Compose Example
version: "2"
services:
openvpn:
image: dperson/openvpn-client:latest
command: -f
restart: always
dns: 10.0.0.2
cap_add:
- NET_ADMIN
devices:
@aheckmann
aheckmann / storeImgInMongoWithMongoose.js
Created April 17, 2012 19:14
store/display an image in mongodb using mongoose/express
/**
* Module dependencies
*/
var express = require('express');
var fs = require('fs');
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
// img path