Supanote Core Team
@supanote Verified CreatorOfficial open-source templates, infrastructure manifests, and verified developer snippets curated by the Supanote team.
Public Snippets & Templates
13–24 of 70 publishedSQLite 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 * * * *...
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...
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...
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...
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,...
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 (
...
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...
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...
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:...
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
...
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 =...
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"
-...