Supanote Core Team
@supanote Verified CreatorOfficial open-source templates, infrastructure manifests, and verified developer snippets curated by the Supanote team.
Public Snippets & Templates
1–12 of 70 publishedBigQuery 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...
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...
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 +...
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) +...
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 =...
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...
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...
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 =...
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
...
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 =...
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 =...
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...