#backpressure
Written in ASD-STE100 Simplified Technical English.
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| if [[ $# -ne 2 ]]; then | |
| echo "Usage: $(basename "$0") <feature-branch> <rename-threshold-0-100>" >&2 | |
| exit 1 | |
| fi | |
| FEATURE_BRANCH=$1 | |
| THRESHOLD=$2 |
Below is a five-line “playground-size” demo that lets you watch the conditional type stay in its unevaluated form inside a generic function and collapse as soon as you call the function with a concrete argument.
// 1 ─ a tiny conditional type
type Kind<T> = T extends string ? "str" : "other";customConditions lets you tell the TypeScript module resolver to recognise extra [conditional-export “conditions”] beyond the built-ins (import, require, node, default, etc.).
At compile-time, tsc will use those additional keys whenever it looks at a package’s "exports" or "imports" map, exactly the same way Node or modern bundlers would at run-time.([typescriptlang.org][1])
How to verify the identity of the publisher of a brew cask ?
To verify the identity of the publisher of a Homebrew cask (macOS application distributed via Homebrew), you can follow these steps:
Each Homebrew cask is maintained in a GitHub repository (typically Homebrew/homebrew-cask):
| Concern | Recommended format | Why |
|---|---|---|
| Dates | ISO-8601 UTC string (2025-06-18T12:34:56.789Z) |
Human-readable, sortable, handled natively by every major client. |
| BigInt | String | Avoids loss of precision in JS JSON. |
| Binary | Base-64 string (or separate download URL) | Plays nicely with text-only transports. |
#api#best-practice
In OpenAPI you only need to describe the responses that the client can realistically expect and act on for a given operation. The spec itself clarifies that the document
“is not necessarily expected to cover all HTTP response codes … however, it is expected to cover a successful operation response and any known errors.” (swagger.io)
| #!/bin/bash | |
| # Check for correct number of arguments | |
| if [ "$#" -ne 2 ]; then | |
| echo "Usage: $0 <PID> <Label>" | |
| exit 1 | |
| fi | |
| PID=$1 | |
| LABEL=$2 |
| #!/bin/bash | |
| # Function to purge a queue | |
| purge_queue() { | |
| queue_name="$1" | |
| echo "Purging queue: $queue_name" | |
| docker exec CONTAINER_NAME rabbitmqadmin -u USER -p PWD -H 0.0.0.0 -P MANAGEMENT_PORT purge queue name="$queue_name" > /dev/null | |
| } | |
| # Fetch all queues |