S
Supanote
Sign in Sign up
S

Supanote Core Team

@supanote Verified Creator

Official open-source templates, infrastructure manifests, and verified developer snippets curated by the Supanote team.

Public Snippets
70
Total Views
22172
Languages Used
YAML (12) SQL (12) MARKDOWN (10) INI (7) JAVASCRIPT (6) NGINX (3) JSON (3) BASH (3) HTML (2) CONF (2) CSV (2) CADDYFILE (2) DOCKERFILE (1) LOG (1) SVG (1) PLAIN (1) TOML (1) CSS (1)

Public Snippets & Templates

13–24 of 70 published
bash 1 min read
Nov 6, 2026 · 209 views

SQLite 3.50+ Live Remote Replication Script (sqlite3_rsync)

#!/usr/bin/env bash Live Bandwidth-Optimized SQLite 3.50+ Remote Replication via sqlite3_rsync Schedule every 1-5 minutes via systemd timer or cron: /2 * /usr/local/bin/sqlite-rsync-replica.sh >> /var/log/sqlite-rsync.lo...

#!/usr/bin/env bash
# Live Bandwidth-Optimized SQLite 3.50+ Remote Replication via sqlite3_rsync
# Schedule every 1-5 minutes via systemd timer or cron:
# */2 * * * *...
ini 1 min read
Nov 6, 2026 · 205 views

MariaDB 11.4/11.8 LTS pool-of-threads & Slow Plan Config

MariaDB 11.4 LTS / 11.8 LTS High-Concurrency Production Configuration Place at /etc/mysql/mariadb.conf.d/99-high-concurrency.cnf (32 GB RAM / 8 vCPU) [mariadb] 1. Built-In Thread Pool (Prevents CPU context-switch collaps...

# MariaDB 11.4 LTS / 11.8 LTS High-Concurrency Production Configuration
# Place at /etc/mysql/mariadb.conf.d/99-high-concurrency.cnf (32 GB RAM / 8 vCPU)

[mariadb]
# 1. Built-In Thread Pool (Prevents...
sql 2 min read
Nov 6, 2026 · 193 views

MariaDB 11.8 LTS Native VECTOR INDEX (HNSW + SIMD) Blueprint

-- MariaDB 11.8 LTS Native HNSW Vector Search & Hybrid RAG Schema -- Requires MariaDB 11.7+ / 11.8 LTS (AVX2 / AVX-512 / ARM NEON SIMD hardware acceleration built in) -- 1. Allocate Dedicated HNSW Graph Cache in Memory (...

-- MariaDB 11.8 LTS Native HNSW Vector Search & Hybrid RAG Schema
-- Requires MariaDB 11.7+ / 11.8 LTS (AVX2 / AVX-512 / ARM NEON SIMD hardware acceleration built in)

-- 1. Allocate Dedicated HNSW...
sql 2 min read
Nov 6, 2026 · 217 views

Zero-Risk MySQL Index Cleanup (Invisible Index & EXPLAIN ANALYZE)

-- Zero-Risk MySQL 8.4 / 9.x Unused Index Cleanup Workflow -- Avoids multi-hour index rebuilds if a seemingly unused index is needed by a monthly job -- Step 1: List Unused & Redundant Indexes (Ensure server uptime >= 7...

-- Zero-Risk MySQL 8.4 / 9.x Unused Index Cleanup Workflow
-- Avoids multi-hour index rebuilds if a seemingly unused index is needed by a monthly job

-- Step 1: List Unused & Redundant Indexes...
ini 1 min read
Nov 6, 2026 · 192 views

MySQL 8.4 LTS Production my.cnf (Redo Capacity & NVMe)

MySQL 8.4 LTS / 9.x Production Configuration (32 GB RAM / 8 vCPU / NVMe SSD) Place at /etc/mysql/conf.d/99-production-84.cnf Clean of removed 8.0 flags (defaultauthenticationplugin, binlogtransactiondependency_tracking)...

# MySQL 8.4 LTS / 9.x Production Configuration (32 GB RAM / 8 vCPU / NVMe SSD)
# Place at /etc/mysql/conf.d/99-production-84.cnf
# Clean of removed 8.0 flags (default_authentication_plugin,...
sql 2 min read
Nov 6, 2026 · 223 views

Live PostgreSQL Lock Tree (pg_blocking_pids) & Safe Killer

-- Live PostgreSQL Hierarchical Lock Tree & Root Blocker Inspector (PG 14 - PG 18) -- Run during migration hangs or row-lock pileups to identify the exact root cause PID WITH RECURSIVE activity AS ( SELECT pid, usename,...

-- Live PostgreSQL Hierarchical Lock Tree & Root Blocker Inspector (PG 14 - PG 18)
-- Run during migration hangs or row-lock pileups to identify the exact root cause PID

WITH RECURSIVE activity AS (
...
sql 2 min read
Nov 6, 2026 · 218 views

PostgreSQL 18 Native uuidv7() Time-Ordered Primary Keys

-- PostgreSQL 18+ Native Time-Ordered UUIDv7 Primary Key Blueprint -- Solves random UUIDv4 B-tree index fragmentation, buffer churn, and WAL write amplification -- 1. Core Table Using Built-In uuidv7() Default (RFC 9562)...

-- PostgreSQL 18+ Native Time-Ordered UUIDv7 Primary Key Blueprint
-- Solves random UUIDv4 B-tree index fragmentation, buffer churn, and WAL write amplification

-- 1. Core Table Using Built-In...
ini 2 min read
Nov 6, 2026 · 216 views

PostgreSQL 18 Asynchronous I/O (io_uring) & NVMe Config

PostgreSQL 18 Production NVMe & Asynchronous I/O Configuration Target: PostgreSQL 18+ on Linux 6.1+ (32 GB RAM / 8 vCPU / NVMe SSD) Place in conf.d/99-pg18-aio-nvme.conf and restart PostgreSQL (io_method requires restart...

# PostgreSQL 18 Production NVMe & Asynchronous I/O Configuration
# Target: PostgreSQL 18+ on Linux 6.1+ (32 GB RAM / 8 vCPU / NVMe SSD)
# Place in conf.d/99-pg18-aio-nvme.conf and restart PostgreSQL...
yaml 1 min read
Oct 9, 2026 · 309 views

GitHub Actions npm Package Publish with Sigstore Provenance

name: Publish to npm on: release: types: [published] jobs: publish: runs-on: ubuntu-latest permissions: contents: read id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version:...

name: Publish to npm
on:
  release:
    types: [published]

jobs:
  publish:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      id-token: write

    steps:
      - uses:...
yaml 1 min read
Oct 9, 2026 · 343 views

GitHub Actions Playwright Parallel E2E Test Workflow

name: Playwright Tests on: push: branches: [main] pull_request: branches: [main] jobs: test: timeout-minutes: 30 runs-on: ubuntu-latest strategy: fail-fast: false matrix: shardIndex: [1, 2, 3] shardTotal: [3] steps: - us...

name: Playwright Tests
on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  test:
    timeout-minutes: 30
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
    ...
sql 1 min read
Oct 9, 2026 · 333 views

PostgreSQL Logical Replication & CDC WAL Settings

-- PostgreSQL Logical Replication & Change Data Capture (CDC) Setup -- Step 1: Ensure postgresql.conf settings are applied: -- wal_level = logical -- maxwalsenders = 10 -- maxreplicationslots = 10 -- Step 2: On PRIMARY P...

-- PostgreSQL Logical Replication & Change Data Capture (CDC) Setup

-- Step 1: Ensure postgresql.conf settings are applied:
-- wal_level = logical
-- max_wal_senders = 10
-- max_replication_slots =...
yaml 1 min read
Oct 9, 2026 · 321 views

ClickHouse Single-Node Analytics Container Stack

version: '3.8' services: clickhouse: image: clickhouse/clickhouse-server:24.3 container_name: clickhouse-analytics restart: unless-stopped ports: - "8123:8123" - "9000:9000" environment: CLICKHOUSE_DB: analytics CLICKHOU...

version: '3.8'

services:
  clickhouse:
    image: clickhouse/clickhouse-server:24.3
    container_name: clickhouse-analytics
    restart: unless-stopped
    ports:
      - "8123:8123"
      -...
Notification