https://docs.docker.com/engine/swarm/swarm-tutorial/
swarm
-----
| - manager (alpha) [8GB HDD1/, 32GB HDD2/data, 4 Cores, 6GB RAM]
export function getRandomInt(min: number, max: number): number { | |
min = Math.ceil(min) | |
max = Math.floor(max) | |
return Math.floor(Math.random() * (max - min) + min) | |
} | |
const getRandomRGBColors = (count = 16) => { | |
const colors: [number, number, number][] = [] | |
const ranges = [255, 192, 128, 64, 32] | |
for (let i = 0; i < ranges.length; ) { |
// JavaScript | |
// | |
// Partial application | |
// prefilling argument | |
const add = (...args) => [...args].reduce((a, b) => a + b) | |
const addMore = add.bind(undefined, 3, 5, 10) | |
console.log('bind addMore(2)', addMore(2)) // bind addMore(2) 20 | |
const mergeObject = (a, b) => Object.freeze({ |
import { useState, useEffect } from 'react' | |
// Network Information API | |
// NetworkInfo https://wicg.github.io/netinfo/ | |
// https://caniuse.com/netinfo | |
enum ConnectionType { | |
'bluetooth', | |
'cellular', | |
'ethernet', |
https://docs.docker.com/engine/swarm/swarm-tutorial/
swarm
-----
| - manager (alpha) [8GB HDD1/, 32GB HDD2/data, 4 Cores, 6GB RAM]
In OpenSSH, multiplexing can re-use an existing outgoing TCP connection for multiple concurrent SSH sessions to a remote SSH server, avoiding the overhead of creating a new TCP connection and reauthenticating each time. (https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing)
/** | |
* express / proxy, middleware | |
* manipulate and map target requests and responses | |
* | |
* - inject assets to test / develop features, fixes ... | |
* - overwrite JavaScript and CSS served by the target | |
*/ | |
/** | |
* Module dependencies. |
server { | |
listen 127.0.0.1:8181; | |
server_name localhost; | |
root /var/www/webdav; | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htaccess; | |
dav_methods PUT DELETE MKCOL COPY MOVE; | |
dav_ext_methods PROPFIND OPTIONS; |
# .htaccess | |
# Apache/2.4.10 (Debian) | |
# | |
# AllowOverride FileInfo Indexes Options | |
############################################## | |
# Caching | |
############################################## | |
<IfModule headers_module> |