https://docs.docker.com/engine/swarm/swarm-tutorial/
swarm
-----
| - manager (alpha) [8GB HDD1/, 32GB HDD2/data, 4 Cores, 6GB RAM]
| {%- extends "page.html" %} | |
| {%- block content %} | |
| <h1>{{ page.title }}</h1> | |
| {{ page.content | safe }} | |
| {%- set miniflux_base_url = get_env(name="MINIFLUX_BASE_URL", default="") | trim(end_matches="/") %} | |
| {%- set miniflux_api_key = get_env(name="MINIFLUX_API_KEY", default="") %} | |
| <section> | |
| <h2>Most Recently Added Feeds</h2> | |
| {%- if miniflux_base_url == "" or miniflux_api_key == "" %} | |
| <p>Miniflux is not configured. Set MINIFLUX_BASE_URL and MINIFLUX_API_KEY.</p> |
| {%- extends "page.html" %} | |
| {%- block content %} | |
| <h1>{{ page.title }}</h1> | |
| {{ page.content | safe }} | |
| {%- set github_username = config.extra.link_github_username | default(value="exiguus") %} | |
| {%- set github_token = get_env(name="PROJECT_GITHUB_TOKEN", default="") %} | |
| <section> | |
| <h2>Most Recent Active Projects</h2> |
| #!/bin/bash | |
| # Variables | |
| NIGHTLY_DIR="$HOME/firefox-nightly" | |
| NIGHTLY_PROFILE_DIR="$HOME/.mozilla/firefox-nightly-profile" | |
| DOWNLOAD_URL="https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US" | |
| DESKTOP_FILE="$HOME/.local/share/applications/firefox-nightly.desktop" | |
| BIN_DIR="$HOME/.local/bin" | |
| EXECUTABLE="$BIN_DIR/firefox-nightly" | |
| TEMP_FILE="$HOME/Downloads/firefox-nightly.tar.bz2" |
| 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)