Skip to content

Instantly share code, notes, and snippets.

View melvinlee's full-sized avatar

melvinlee melvinlee

  • Singapore
View GitHub Profile
1. Traffic Overview
▎ "Look at Kong logs for the last 24 hours. Count requests by status code (2xx, 3xx, 4xx, 5xx) per hour. Which paths are generating the most errors? Show me sample failing requests so I
▎ can see what's broken."
---
2. Slow Requests
▎ "Find all Kong requests that took longer than 1 second in the last hour. Which endpoints are slowest? Is the slowness on one specific route or spread across everything — and is it
▎ getting worse over time?"
Category │ What to ask │
├──────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Capacity planning │ "What's my log ingestion rate per namespace over the last 7 days? Any services growing unusually fast?" │
├──────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ SLA / SLO reporting │ "Count HTTP 5xx errors per hour for the last 30 days and calculate error budget burn rate" │
├──────────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Security auditing │ "Find all logs containing auth failed, permission denied, or u
---
1. Service Discovery & Orientation
▎ "Use get_labels and get_series to map all active log streams. For each unique app or service label, sample 5 recent lines with query_logs. Give me a summary of what each service does
▎ and its log verbosity."
Good for: onboarding, understanding a new environment.
---
2. Error Triage After an Alert
---
name: kong-debug
description: Systematic debugging guide for Kong Gateway issues without relying on the Admin API. Use this skill whenever the user mentions Kong Gateway, Kong proxy, Kong plugins, 502/503/504 errors from Kong, Kong routes or services not working, Kong configuration issues, Konnect troubleshooting, or any API gateway problems that involve Kong. Trigger even if the user just says "my API gateway is broken" and Kong is in context. This variant focuses on proxy-side signals (response headers, logs, declarative config, container/network probes) for environments where the Admin API is disabled, locked down, or unreachable (e.g., Konnect data planes, hardened production).
---
# Kong Gateway Debugging (No Admin API)
Systematic playbook for diagnosing Kong Gateway issues using only proxy-side signals: response headers, logs, declarative config, container state, and network probes. This matches the reality of most production Kong deployments, where the Admin API is intentionally not exposed.
Mos
# LLM Wiki
A personal knowledge base maintained by Claude Code.
Based on Andrej Karpathy's LLM Wiki pattern.
## Purpose
This wiki is a structured, interlinked knowledge base for planning a trip to Japan.
Claude maintains the wiki. The human curates sources, asks questions, and guides the analysis.
@melvinlee
melvinlee / llm-wiki.md
Created April 13, 2026 02:09 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

Look it up yourself — 3 ways
1. crt.sh (Certificate Transparency logs)
https://crt.sh/?q=cust001.api.standardchartered.com
This will show all certs ever issued for that hostname, including issuer, validity dates, SANs, and CT log timestamps.
2. OpenSSL from your workstation
bashecho | openssl s_client \
-connect <domain>:443 \
-servername <domain> 2>/dev/null \
| openssl x509 -noout -text
This gives you the full cert — subject, issuer, SANs, validity period, key algorithm, and signature.
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser(description="Process Monitor MCP Server")
parser.add_argument(
"--transport",
choices=["sse", "http"],
default="http",
help="Transport type: 'sse' or 'http' (streamable HTTP, default)",
)
@melvinlee
melvinlee / sqlplus-pod.yaml
Created April 3, 2025 04:27
Oracle sqlplus
apiVersion: v1
kind: Pod
metadata:
name: sqlplus-client
labels:
app: sqlplus
spec:
containers:
- name: sqlplus
image: gvenzl/oracle-free:23
@melvinlee
melvinlee / oracle-sts.yaml
Created April 2, 2025 13:19
Oracle Statefulset Manifest
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: oracle-db
namespace: default
labels:
app: oracle-db
spec:
serviceName: oracle-svc
replicas: 1