Unofficial complete specification for implementing a proxy that handles Claude Code's OAuth authentication flow and API requests. Captured from Claude Code CLI v2.1.77 on 2026-03-17.
| diff --git a/packages/http-api/src/handlers/accounts.ts b/packages/http-api/src/handlers/accounts.ts | |
| index d954345..8ef3284 100644 | |
| --- a/packages/http-api/src/handlers/accounts.ts | |
| +++ b/packages/http-api/src/handlers/accounts.ts | |
| @@ -163,22 +163,17 @@ export function createAccountsListHandler(dbOps: DatabaseOperations) { | |
| // Use unified rate limit status if available | |
| if (account.rate_limit_status) { | |
| rateLimitStatus = account.rate_limit_status; | |
| - if (account.rate_limit_reset && account.rate_limit_reset > now) { | |
| - const minutesLeft = Math.ceil( |
stream.sh is a Bash script designed to stream multiple video sources to multiple screens using ffplay. This script ensures that each video stream is displayed on a specified monitor and restarts the stream if it fails. The script is optimized for real-time playback by using various ffplay options to reduce latency and handle frame drops effectively.
- Streams multiple video sources to multiple screens.
- Ensures each stream is displayed on the specified monitor.
- Restarts streams automatically if they fail.
- Optimized for real-time playback with minimal latency.
The reindex_and_refresh_collation.sh script is created to automate the process of reindexing tables and refreshing the collation version for all user databases in a PostgreSQL server. This utility is particularly useful when you've updated the locale or collation libraries on the system where PostgreSQL is installed, as these updates could cause mismatches between the databases' expected collation version and the operating system's provided version.
- Retrieves a list of all user databases (excluding system templates) on the PostgreSQL server.
| #!/usr/bin/env bash | |
| # Unified devcontainer post-create script | |
| # Idempotent, atomic, architecture-aware | |
| # Each step is independent — failures are logged but never abort the script. | |
| set -uo pipefail | |
| ############################################################################### | |
| # CRLF self-heal — Windows git checkout can inject \r into shell scripts | |
| ############################################################################### | |
| if head -1 "$0" | grep -q $'\r'; then |
| diff --git a/apps/server/src/server.ts b/apps/server/src/server.ts | |
| index d502e19..f11b791 100644 | |
| --- a/apps/server/src/server.ts | |
| +++ b/apps/server/src/server.ts | |
| @@ -510,12 +510,14 @@ export default async function startServer(options?: { | |
| runtime.port = port; | |
| } | |
| DatabaseFactory.initialize(undefined, runtime); | |
| - const dbOps = DatabaseFactory.getInstance(); | |
| + const dbOps = await DatabaseFactory.getInstanceAsync(); |
| openapi: 3.1.0 | |
| info: | |
| title: Pexels API | |
| version: "2026-03-08" | |
| summary: Unofficial OpenAPI 3.1 specification generated from the current Pexels documentation. | |
| description: |- | |
| This OpenAPI document was generated from the current public Pexels API documentation. | |
| Notes: | |
| - Authentication is via the `Authorization` header with a Pexels API key. |
| #!/usr/bin/env bash | |
| # devcontainer-tmux — Start or attach a tmux session inside a running devcontainer | |
| # Usage: devcontainer-tmux <org>/<repo> [session-suffix] [--repo-root PATH] | |
| # | |
| # Examples: | |
| # devcontainer-tmux troykelly/openclaw-projects | |
| # devcontainer-tmux troykelly/openclaw-projects 002 | |
| # devcontainer-tmux troykelly/openclaw-projects fix-tests --repo-root ~/github | |
| # | |
| # Behaviour: |
These scripts provide a simple way to backup and restore Odoo databases and their associated filestores.
backup.sh: Creates a compressed backup of the Odoo database and filestore.restore.sh: Restores an Odoo database and filestore from the created backup.
| net.ipv6.conf.all.forwarding=1 | |
| net.ipv6.conf.default.forwarding=1 | |
| net.ipv6.route.max_size=16384 | |
| net.ipv6.conf.eth0.accept_ra=2 |