docker run --net=host --name mongodb -v ${PWD}/.mongodb/data/db:/data/db -p 27017:27017 -d mongo:3.0 --smallfiles
docker create --net=host --name mongodb -v ${PWD}/.mongodb/data/db:/data/db -p 27017:27017 mongo:3.0 --smallfiles
'use strict'; | |
var fs = require('fs') | |
, marked = require('marked') | |
; | |
module.exports = function (options) { | |
if (!options) { | |
options = {}; | |
} |
"use strict"; | |
var express = require('express'); | |
var app = express(); | |
var jsDAV = require("jsDAV/lib/jsdav"); | |
app.use(function (req, res, next) { | |
if (req.url.search(/^\/webdav/) >= 0) { | |
jsDAV.mount({ | |
node: __dirname + "/data", | |
mount: "/webdav", |
sudo apt-get install libssl-dev build-essential |
#!/bin/sh | |
# | |
# init.d script with LSB support. | |
# | |
# Copyright (c) 2007 Javier Fernandez-Sanguino <[email protected]> | |
# | |
# This is free software; you may redistribute it and/or modify | |
# it under the terms of the GNU General Public License as | |
# published by the Free Software Foundation; either version 2, | |
# or (at your option) any later version. |
#!/bin/bash | |
sudo fallocate -l 4G /swapfile | |
sudo mkswap /swapfile | |
sudo swapon /swapfile | |
sudo swapon -s | |
# SWAP ENCRYPTION | |
# sudo ecryptfs-setup-swap |
rsync -avz /source /target | |
cat /sys/class/net/eth0/operstate |
{ | |
"get" : "doi", | |
"first" : true, | |
"resolveDOI" : true, | |
"$title" : { | |
"get" : "doi-publication-title", | |
"first" : true | |
}, | |
"$issn" : { | |
"get" : "doi-ISSN", |
dconf-editor | |
and open dconf-editor -> system -> proxy |