Install CouchDB. This guide assumes 1.3.1. Set up an admin account.
Create the database required by NPM:
curl -X PUT http://admin:[email protected]:5984/registry| The two files attached are Express Middleware | |
| Srvformat sets the format based on the accept header | |
| to switch it to api mode. | |
| ApiSession uses the req.format set by this to decide | |
| which kinds of sessions to use. |
| val fib = (n:Int) => (0 until n).foldLeft(0, 1) { (x, i) => (x._2, x._1 + x._2) }._1 |
Install CouchDB. This guide assumes 1.3.1. Set up an admin account.
Create the database required by NPM:
curl -X PUT http://admin:[email protected]:5984/registry| #!/usr/bin/python | |
| # | |
| # Usage: packer-config my-template.yaml | packer build - | |
| # | |
| # Constructs a Packer JSON configuration file from the specified YAML | |
| # template file and writes it to STDOUT. | |
| # | |
| # The YAML template format adds some flexibility and readability by | |
| # adding comments and an !include directive, allowing for the | |
| # following template syntax: |
| /** | |
| * Simple userland CPU profiler using v8-profiler | |
| * Usage: require('[path_to]/CpuProfiler').init('datadir') | |
| * | |
| * @module CpuProfiler | |
| * @type {exports} | |
| */ | |
| var fs = require('fs'); | |
| var profiler = require('v8-profiler'); |
| #!/bin/sh | |
| apt-get -y install git bc | |
| git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
| mkdir /etc/letsencrypt |
We are building a Node.js service which will need asynchronous support for tasks like sending emails. Here's our evaluation:
This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.
Read the entire Decent Security guide, and follow the instructions, especially:
| [Unit] | |
| Description=rclone - rsync for cloud storage | |
| Documentation=https://rclone.org/docs/ | |
| After=network-online.target | |
| Before=caddy.service | |
| Wants=network-online.target systemd-networkd-wait-online.service | |
| Requires=caddy.service | |
| [Service] | |
| Restart=on-abnormal |