From 9950201dd75a4cab3fc7d54975fa9bce9b1b239e Mon Sep 17 00:00:00 2001 From: counterweight Date: Wed, 24 Dec 2025 10:52:09 +0100 Subject: [PATCH 1/4] add link to bitcoin infra --- public/index.html | 3 +++ public/styles.css | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 7021775..e4c5a83 100644 --- a/public/index.html +++ b/public/index.html @@ -123,6 +123,9 @@ My Python package to handle Spanish DNIs better +
  • + My open access Bitcoin infrastructure that you can use freely. It includes access to the peer port of my Bitcoin node, an Electrum server and a mempool.space instance. +
  • There are also some other projects that I generally keep private but diff --git a/public/styles.css b/public/styles.css index 690b8b1..e7908b3 100644 --- a/public/styles.css +++ b/public/styles.css @@ -7,7 +7,8 @@ body { h1, h2, -h3 { +h3, +h4 { text-align: center; } From 6b34d08cae7217f45649911b99b58ab9bff3118c Mon Sep 17 00:00:00 2001 From: counterweight Date: Wed, 24 Dec 2025 10:55:22 +0100 Subject: [PATCH 2/4] deploy helper --- .gitignore | 14 ++++++++++++++ deploy.config.example | 21 +++++++++++++++++++++ deploy.sh | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 .gitignore create mode 100644 deploy.config.example create mode 100755 deploy.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8f24f11 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# Deployment configuration (contains sensitive server details) +deploy.config + +# OS files +.DS_Store +Thumbs.db + +# Editor files +.vscode/ +.idea/ +*.swp +*.swo +*~ + diff --git a/deploy.config.example b/deploy.config.example new file mode 100644 index 0000000..1c84f53 --- /dev/null +++ b/deploy.config.example @@ -0,0 +1,21 @@ +# Deployment Configuration +# Copy this file to deploy.config and fill in your server details +# deploy.config is gitignored to keep your credentials safe + +# Remote server hostname or IP address +REMOTE_HOST="example.com" + +# SSH username for the remote server +REMOTE_USER="username" + +# Remote path where the website should be deployed +# This should be the directory served by your webserver (e.g., /var/www/html, /home/username/public_html) +REMOTE_PATH="/var/www/html" + +# Optional: Path to SSH private key (if not using default ~/.ssh/id_rsa) +# Leave empty to use default SSH key +SSH_KEY="" + +# Optional: SSH port (defaults to 22 if not specified) +# SSH_PORT="22" + diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..5cf9692 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Deployment script for pablohere website +# This script syncs the public folder to a remote webserver + +set -e # Exit on error + +# Load deployment configuration +if [ ! -f "deploy.config" ]; then + echo "Error: deploy.config file not found!" + echo "Please copy deploy.config.example to deploy.config and fill in your server details." + exit 1 +fi + +source deploy.config + +# Validate required variables +if [ -z "$REMOTE_HOST" ] || [ -z "$REMOTE_USER" ] || [ -z "$REMOTE_PATH" ]; then + echo "Error: Required variables not set in deploy.config" + echo "Please ensure REMOTE_HOST, REMOTE_USER, and REMOTE_PATH are set." + exit 1 +fi + +# Use rsync to sync files +echo "Deploying public folder to $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH" +rsync -avz --delete \ + --exclude='.git' \ + --exclude='.DS_Store' \ + $SSH_OPTS \ + public/ \ + $REMOTE_USER@$REMOTE_HOST:$REMOTE_PATH + +echo "Deployment complete!" + From ea3d5a7c3ecf4d9e2e041f872dc5a823b669483d Mon Sep 17 00:00:00 2001 From: counterweight Date: Wed, 24 Dec 2025 10:57:26 +0100 Subject: [PATCH 3/4] update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b448f02..32ee0c7 100644 --- a/README.md +++ b/README.md @@ -8,4 +8,6 @@ The `index.html` is ready in the `public` folder. ## How to deploy -Somehow get the `public` folder behind a webserver manually and sort out DNS. +1. Copy `deploy.config.example` to `deploy.config` +2. Fill in your server details in `deploy.config` (host, user, remote path) +3. Run `./deploy.sh` to sync the `public` folder to your remote webserver From ae87f3838c564c39b87305fde5e8cf637d0b5fbd Mon Sep 17 00:00:00 2001 From: counterweight Date: Sun, 4 Jan 2026 01:13:15 +0100 Subject: [PATCH 4/4] zfs writings --- public/index.html | 12 ++ .../a-degraded-pool-with-a-healthy-disk.html | 133 +++++++++++++ .../fixing-a-degraded-zfs-mirror.html | 188 ++++++++++++++++++ .../why-i-put-my-vms-on-a-zfs-mirror.html | 120 +++++++++++ 4 files changed, 453 insertions(+) create mode 100644 public/writings/a-degraded-pool-with-a-healthy-disk.html create mode 100644 public/writings/fixing-a-degraded-zfs-mirror.html create mode 100644 public/writings/why-i-put-my-vms-on-a-zfs-mirror.html diff --git a/public/index.html b/public/index.html index e4c5a83..1c18d0d 100644 --- a/public/index.html +++ b/public/index.html @@ -147,6 +147,18 @@

    Writings

    Sometimes I like to jot down ideas and drop them here.