OneLinersCommand workbench
Guides
Operational guides

Complete procedures with a way back.

Searchable, versioned procedures with prerequisites, verification, concrete output, and rollback.

Guides
243
Favorites
0
243 launch guides · 2601 reviewed steps
10 of 243 guides

Databases & Data · Identity & Access · Incident Response & Troubleshooting

Fix PostgreSQL permission denied for schema public or table

Diagnose and repair PostgreSQL permission errors without granting broad roles or changing object ownership. This guide separates database connection, schema USAGE and CREATE, table privileges, sequence access, role inheritance, default privileges, and row-level security so an application receives only the rights it actually needs.
Save to collectionCreate a collection in the sidebar first.
caution45 minintermediate10 stepsPostgreSQL

AI/ML · Databases & Data · Security

Build a read-only PostgreSQL analytics bot with reviewed SQL and chart output

Build a local-first analytics assistant that discovers only curated PostgreSQL views, asks OpenAI for a structured SELECT proposal, validates a conservative SQL subset, requires a human to approve the exact query, enforces a restricted database role and read-only transaction, limits time and rows, and emits local table or chart JSON.
Save to collectionCreate a collection in the sidebar first.
caution240 minadvanced13 stepsUbuntu Server

AI/ML · Software Engineering · Security

Build a Claude tool-use support agent with approval gates

Build a support agent that uses strict Claude tool schemas, validates every tool request again in application code, executes independent read-only calls safely, pauses writes for human approval, returns correctly ordered tool results, and recovers from refusals, timeouts, and partial failures.
Save to collectionCreate a collection in the sidebar first.
caution210 minadvanced10 stepsNode.js

AI/ML · Security · Software Engineering · Incident Response & Troubleshooting

Defend prompts and agents against prompt injection, secret extraction, and untrusted content

Threat-model every untrusted source and sensitive sink, minimize capabilities and context, enforce typed tools and egress, sandbox code, bind approvals, red-team end to end, and rehearse containment.
Save to collectionCreate a collection in the sidebar first.
danger540 minadvanced11 stepsOpenAI Responses API and agent workflows

AI/ML · Security · Software Engineering

Connect an AI coding assistant to MCP servers and review permissions before enabling tools

Evaluate an MCP server as executable supply chain and delegated authority, pin its identity, constrain a local runtime or verify a remote trust endpoint, configure a positive tool allowlist, review OAuth scopes, observe real effects, test prompt injection, set per-tool approvals and rehearse complete removal.
Save to collectionCreate a collection in the sidebar first.
caution180 minintermediate10 stepsCodex desktop, CLI, or IDE extension

AI/ML · Security · DevOps & CI/CD

Build a secure MCP server with tools, resources, prompts, OAuth, and least-privilege scopes

Design and deploy a remote TypeScript Model Context Protocol server whose tools, resources and prompts have closed schemas, per-handler authorization, OAuth protected-resource discovery, exact audience and scope validation, isolated downstream credentials, bounded transport, audit evidence and a rehearsed rollback.
Save to collectionCreate a collection in the sidebar first.
caution300 minadvanced11 stepsModel Context Protocol

Databases & Data · Security · Backup & Recovery

Secure SQL Server with TLS, least privilege, and verified backup restore

Configure SQL Server 2025 CU7 on Ubuntu 24.04 for strict validated TLS, replace broad application rights, create an encrypted checksum backup with off-host key escrow, and prove it through real restore and CHECKDB.
Save to collectionCreate a collection in the sidebar first.
danger270 minadvanced16 stepsSQL Server

Security · System Administration

Secure PowerShell Remoting with WinRM HTTPS and JEA

Validate PKI, expose source-restricted WinRM HTTPS, build a parameter-constrained JEA role, test every denied path, protect transcripts, and rehearse renewal and rollback.
Save to collectionCreate a collection in the sidebar first.
danger360 minadvanced13 stepsWindows Server

Containers & Kubernetes · Security · Identity & Access

Design least-privilege Kubernetes RBAC and ServiceAccounts

Derive exact Kubernetes API permissions from observed calls, create a dedicated ServiceAccount with no ambient token, bind a narrow namespaced Role, mount a short-lived audience-bound token only where needed, and prove both allowed and denied behavior.
Save to collectionCreate a collection in the sidebar first.
caution150 minadvanced13 stepsKubernetes

Security · Networking & DNS · System Administration

Configure AWS IAM roles and least-privilege policies

Design exact trust, identity, boundary, S3-prefix, and KMS-key permissions; validate with Access Analyzer, simulate candidates/live role, test temporary credentials, audit CloudTrail, reduce unused access, rotate trust, revoke sessions, and roll back safely.
Save to collectionCreate a collection in the sidebar first.
caution210 minadvanced14 stepsAWS IAM