Nick Sweeting @theSquashSH (Twitter) @pirate (Github) Monadical.com
- 1 min: Intro to internet archiving
- Why is preserving information important? why does humanity create libraries and museums?
- How has it been done so far?
# Example networking sidecar ingress containers for Cloudflare Argo, Wireguard, Tailscale, LetSencrypt, Caddy, and SOCKS/SSH tunnel containers in Docker Compose. | |
# https://gist.github.com/pirate/1996d3ed6c5872b1b7afded250772f7c | |
# Goes well with these docker-compose database container examples: | |
# https://gist.github.com/pirate/1fafaa18a47254f388aa5c0f79f7d263 | |
version: '2.4' | |
services: | |
demo: |
<center> | |
Enter the password to view the secret page. | |
<br><br><br> | |
<input id="pass" type="password" > | |
<br><br> | |
<button id="submit">Submit</button> | |
<br> |
<html> | |
<div id="root"></div> | |
<script> | |
const initial_state = { | |
playbar: { | |
playing: true, | |
position: 40.6345, | |
currentTrack: 2342355, | |
currentPlaylist: 124234, |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
#!/usr/bin/env python3 | |
# Dramatiq dashboard server script. | |
# pip install dramatiq[redis] dramatiq-dashboard bjoern | |
import bjoern | |
import argparse | |
import dramatiq | |
from dramatiq.brokers.redis import RedisBroker | |
from dramatiq_dashboard import DashboardApp |
Nick Sweeting @theSquashSH (Twitter) @pirate (Github) Monadical.com
#!/usr/bin/env bash | |
# usage: | |
# ./bin/argo cloud.monadical.com http://127.0.0.1:9089 | |
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" | |
DOMAIN="$1" # e.g. "cloud.monadical.com" | |
URL="$2" # e.g. "https://127.0.0.1:9089" | |
read SCHEME HOST PORT <<<$(IFS="://"; echo "$URL") |
#!/usr/bin/env bash | |
# set -o xtrace | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -o pipefail | |
SCRIPTNAME="$0" | |
HELP_TEXT=" |
#!/usr/bin/env bash | |
# set -o xtrace | |
set -o errexit | |
set -o errtrace | |
set -o nounset | |
set -o pipefail | |
SCRIPTNAME="$0" | |
HELP_TEXT=" |
# This implements a SafeNumber class which wraps Decimal and Fraction to warn | |
# when infix math or comparison operators may cause dangerous implicit type conversion. | |
# | |
# Implicit type conversion when using operators is sneaky with Decimal/Fraction: | |
# >>> Fraction(10) == 10.0000000000000001 | |
# True | |
# | |
# But with SafeNumber, this throws an error to protect against this scenario: | |
# >>> SafeNumber(10) == 10.0000000000000001 | |
# Traceback (most recent call last): |