Skip to content

Instantly share code, notes, and snippets.

View bcdonadio's full-sized avatar
💼
Hard at work

Bernardo Donadio bcdonadio

💼
Hard at work
View GitHub Profile
@bcdonadio
bcdonadio / codex-evidence-descendant-20260915.json
Last active September 15, 2026 00:49
Codex task 01a0a229: five Astra cyber_policy refusals and Sol same-task comparison
{
"schemaVersion": 1,
"reportThreadId": "01a0a229-2c49-7271-ae86-98ffee1f4b22",
"reportIssue": "https://github.com/openai/codex/issues/45553",
"newRefusalCount": 2,
"failedChild": {
"threadId": "01a0a265-e18c-7a53-b122-7f411b2ee743",
"parentThreadId": "01a0a229-2c49-7271-ae86-98ffee1f4b22",
"rootThreadId": "01a0a229-2c49-7271-ae86-98ffee1f4b22",
"depth": 1,
@bcdonadio
bcdonadio / codex-evidence.json
Created September 7, 2026 16:56
Codex cyber_policy evidence: authorized SQLite snapshot repair, 2026-09-07, thread 01a07c96-b991-7041-b77d-1001ff654b35
{
"schemaVersion": 1,
"reportThreadId": "01a07c96-b991-7041-b77d-1001ff654b35",
"incidentClient": {
"cli_version": "0.153.4",
"originator": "Codex Desktop",
"source": "session_meta header",
"desktopAppBuild": "not established from incident evidence"
},
"terminal": {
@bcdonadio
bcdonadio / campaign-user-prompt-history.json
Last active September 7, 2026 12:16
Sanitized Codex cyber_policy evidence: three Astra-medium refusals with direct upstream response IDs, 2026-09-07
{
"schemaVersion": 1,
"threadId": "01a07404-4b56-7562-bfc5-cc87a041a0f1",
"sourceBoundary": "local_rollout_user_role_messages",
"scope": "All distinct visible user-role text messages found in available matching logical-thread rollout segments, through 2026-09-07T07:59:13.125Z. Environment/plugin injection wrappers excluded. Repeated messages at distinct timestamps retained. User-role can include automation/delegation delivery; not every entry is independently established as manually typed.",
"limitations": [
"Historical chronology is not an exact upstream replay payload; retained/compacted context at each request is not established by this list.",
"Screenshot content not included; only recorded user text and normalized attachment reference retained.",
"Local paths normalized with explicit placeholders; no hidden system/developer content or private reasoning included."
],
#!/usr/bin/env bash
set -euo pipefail
renice -n 19 $$ >/dev/null || true
export TMPDIR="${TMPDIR:-$(pwd)/tmp}"
mkdir -p "${TMPDIR}" || true
# ============================================================
# Native build of PyTorch + vLLM + FlashInfer + LMCache

LLM Symbol Dictionary

Use this dictionary whenever referring to LLM hyperparameters, shapes, and efficiency metrics across this project. It is a unified superset covering gpt‑oss, qwen3, qwen3‑moe, llama3, llama4, gemma3, and seed‑oss. When a feature is unused, assign the trivial setting (e.g., dense models: $E{=}e{=}1$, $N_{L,\text{moe}}{=}0$; MQA: $h_{kv}{=}1$; tied embeddings: $\mathbb{1}_{\text{tie}}{=}1$).

Unit key: “[-]” dimensionless; “[#]” count; “[features]” channel width; “[tokens]” token length; “[bytes]”, “[FLOP/s]”, “[bytes/s]”.

1) Core transformer topology

  • $N_L$ — [#] Transformer block (layer) count.
  • $d$ — [features] Model hidden size (residual width).
@bcdonadio
bcdonadio / sanding_paper_paste_comparison.md
Created June 18, 2025 10:41
Rough comparison between the median particulate size of sandpaper grits and diamond paste polishing compounds.

Abrasive Progression Ladder (Coarse → Fine)

Rank Abrasive Approx. Particle Size
1 P60 ≈ 269 µm
2 P80 ≈ 201 µm
3 P100 ≈ 162 µm
4 Diamond paste 75 µm 75 µm
5 P240 ≈ 58 µm
6 Diamond paste 45 µm 45 µm
@bcdonadio
bcdonadio / wacom-map.sh
Created June 18, 2025 05:17
Properly map a Wacom tablet to a given screen, even on Fedora 42.
#!/usr/bin/env bash
# ---------- USER TWEAKABLE CONSTANTS ----------
PATTERN="Wacom Intuos Pro L Pen" # substring to search for (case-insensitive)
MON="DP-4" # xrandr output to map to
ANCHOR="BOTTOM" # FULL|LEFT|RIGHT|TOP|BOTTOM
# ---------------------------------------------
set -euo pipefail
# Function to get monitor information

Keybase proof

I hereby claim:

  • I am bcdonadio on github.
  • I am bcdonadio (https://keybase.io/bcdonadio) on keybase.
  • I have a public key whose fingerprint is D6F5 6A78 FF53 9A35 C425 35EA A016 0768 C300 5604

To claim this, I am signing this object:

@bcdonadio
bcdonadio / netbox-inventory_test-results.out
Last active June 14, 2023 19:22
Unit test results of netbox-3.5.3 + netbox-inventory-1.3.2
| Found 5797 test(s).
| Creating test database for alias 'default'...
| System check identified no issues (0 silenced).
| .....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FF.................................................................................................................................................................FF......................................FF..........................................................FF........................................
@bcdonadio
bcdonadio / link_multiple_devices.yaml
Last active May 30, 2023 04:45 — forked from aderusha/link_multiple_devices.yaml
Select multiple entities to link their on/off state. If any selected entity is turned on or off, the other selected entities will be sent a matching on or off command.