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
22171
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

1–12 of 70 published
sql 1 min read
Nov 6, 2026 · 226 views

BigQuery GoogleSQL Pipe Syntax (|>) & GROUP BY ALL Blueprint

-- Google BigQuery Modern Pipe Syntax (|>) Analytics Blueprint (2025-2026 GA) -- Every prefix up to any '|>' line is a valid standalone query for instant debugging! -- 1. Linear Funnel & Revenue Attribution Pipeline With...

-- Google BigQuery Modern Pipe Syntax (|>) Analytics Blueprint (2025-2026 GA)
-- Every prefix up to any '|>' line is a valid standalone query for instant debugging!

-- 1. Linear Funnel & Revenue...
sql 1 min read
Nov 6, 2026 · 182 views

BigQuery INFORMATION_SCHEMA.JOBS Cost, Slot & Spill Profiler

-- BigQuery 30-Day Query Fingerprint FinOps, Slot-Hours & Shuffle Spill Profiler -- Partition-pruned on creation_time so this audit query itself scans minimal metadata bytes DECLARE lookback_days INT64 DEFAULT 30; DECLAR...

-- BigQuery 30-Day Query Fingerprint FinOps, Slot-Hours & Shuffle Spill Profiler
-- Partition-pruned on creation_time so this audit query itself scans minimal metadata bytes

DECLARE lookback_days...
sql 2 min read
Nov 6, 2026 · 218 views

BigQuery FinOps: PHYSICAL vs LOGICAL Storage Savings Calculator

-- Google BigQuery FinOps: Dataset-Level LOGICAL vs PHYSICAL Storage Cost Calculator -- Replace 'region-us' with your BigQuery region (e.g. 'region-eu', 'region-us-central1') -- Evaluates active + long-term + 7-day time-...

-- Google BigQuery FinOps: Dataset-Level LOGICAL vs PHYSICAL Storage Cost Calculator
-- Replace 'region-us' with your BigQuery region (e.g. 'region-eu', 'region-us-central1')
-- Evaluates active +...
ini 2 min read
Nov 6, 2026 · 216 views

Memcached 1.6.34+ extstore Hybrid RAM + NVMe Flash Config

Memcached 1.6.34+ Hybrid DRAM + NVMe Flash (extstore) Systemd Environment Place in /etc/sysconfig/memcached or /etc/default/memcached Architecture: 16 GB RAM (keys, headers & hot small items) + 128 GB dedicated NVMe file...

# Memcached 1.6.34+ Hybrid DRAM + NVMe Flash (extstore) Systemd Environment
# Place in /etc/sysconfig/memcached or /etc/default/memcached
# Architecture: 16 GB RAM (keys, headers & hot small items) +...
javascript 2 min read
Nov 6, 2026 · 204 views

Memcached Meta Protocol (mg/ms) Anti-Stampede & Stale-While-Revalidate

'use strict'; // Zero-Dependency Memcached 1.6+ Meta Protocol Anti-Stampede & SWR Helper (Node.js) // Uses native 'mg' flags: // v = return value | t = return remaining TTL // N30 = auto-vivify stub w/ 30s lease on miss...

'use strict';
// Zero-Dependency Memcached 1.6+ Meta Protocol Anti-Stampede & SWR Helper (Node.js)
// Uses native 'mg' flags:
//   v   = return value        | t = return remaining TTL
//   N30 =...
bash 1 min read
Nov 6, 2026 · 204 views

Redis 8.0 Granular Hash Field TTL (HEXPIRE, HSETEX & HGETDEL)

#!/usr/bin/env bash Redis 7.4 / 8.0+ Granular Hash Field Expiration Blueprint Replaces sprawling user:1042:device: top-level keys with a single compact Hash per user set -euo pipefail REDISCLI="${REDISCLI:-redis-cli}" US...

#!/usr/bin/env bash
# Redis 7.4 / 8.0+ Granular Hash Field Expiration Blueprint
# Replaces sprawling user:1042:device:<id> top-level keys with a single compact Hash per user

set -euo...
bash 1 min read
Nov 6, 2026 · 211 views

Redis 8.0 Native Vector Sets (VADD & VSIM with Q8 Quantization)

#!/usr/bin/env bash Redis 8.0+ Built-In Vector Sets (VADD / VSIM / VSETATTR) Semantic Search Blueprint Requires Redis 8.0+ open-source unified binary (no external module configuration needed) set -euo pipefail REDISCLI="...

#!/usr/bin/env bash
# Redis 8.0+ Built-In Vector Sets (VADD / VSIM / VSETATTR) Semantic Search Blueprint
# Requires Redis 8.0+ open-source unified binary (no external module configuration needed)

set...
ini 1 min read
Nov 6, 2026 · 222 views

Redis 8.0 Async io-threads & Linux Kernel Tuning (redis.conf)

Redis 8.0+ High-Throughput Production Configuration (/etc/redis/redis.conf) Prerequisite Linux sysctl (/etc/sysctl.d/99-redis.conf): vm.overcommit_memory = 1 net.core.somaxconn = 65535 bind 127.0.0.1 -::1 protected-mode...

# Redis 8.0+ High-Throughput Production Configuration (/etc/redis/redis.conf)
# Prerequisite Linux sysctl (/etc/sysctl.d/99-redis.conf):
#   vm.overcommit_memory = 1
#   net.core.somaxconn =...
yaml 1 min read
Nov 6, 2026 · 221 views

MongoDB 8.0 Production mongod.conf (WiredTiger & Zstd)

MongoDB 8.0+ Production Replica-Set Node Configuration (/etc/mongod.conf) Host sizing baseline: 32 GB RAM / 8 vCPU / XFS on NVMe SSD (Linux THP disabled) storage: dbPath: /var/lib/mongodb wiredTiger: engineConfig: # Rule...

# MongoDB 8.0+ Production Replica-Set Node Configuration (/etc/mongod.conf)
# Host sizing baseline: 32 GB RAM / 8 vCPU / XFS on NVMe SSD (Linux THP disabled)

storage:
  dbPath: /var/lib/mongodb
 ...
javascript 2 min read
Nov 6, 2026 · 212 views

MongoDB $indexStats Unused & Redundant Index Hunter (mongosh)

// MongoDB Unused & Left-Prefix Redundant Index Auditor (mongosh 8.0+) // Execute: mongosh "$MONGODB_URI" --quiet mongodb-index-hunter.js const targetDbName = db.getName(); const minAgeDays = 7; const cutoffMs = Date.now...

// MongoDB Unused & Left-Prefix Redundant Index Auditor (mongosh 8.0+)
// Execute: mongosh "$MONGODB_URI" --quiet mongodb-index-hunter.js

const targetDbName = db.getName();
const minAgeDays =...
javascript 2 min read
Nov 6, 2026 · 201 views

MongoDB 8.0+ setQuerySettings: Pin Index Hints Without Redeploy

// MongoDB 8.0+ Cluster-Wide Persistent Index Hints & Query Firewall (mongosh) // Run in mongosh against your primary or mongos router — ZERO application redeploy required! const targetDb = db.getSiblingDB('commerce_prod...

// MongoDB 8.0+ Cluster-Wide Persistent Index Hints & Query Firewall (mongosh)
// Run in mongosh against your primary or mongos router — ZERO application redeploy required!

const targetDb =...
sql 2 min read
Nov 6, 2026 · 242 views

SQLite 3.50+ Binary JSONB, STRICT Table & Generated Indexes

-- SQLite 3.45 - 3.50+ High-Speed Binary JSONB + STRICT Table + Generated Index Pattern -- Binary JSONB avoids repeated text parsing and enables localized in-place mutations in 3.50+ PRAGMA journal_mode = WAL; PRAGMA syn...

-- SQLite 3.45 - 3.50+ High-Speed Binary JSONB + STRICT Table + Generated Index Pattern
-- Binary JSONB avoids repeated text parsing and enables localized in-place mutations in 3.50+

PRAGMA...
Notification