Skip to content

Instantly share code, notes, and snippets.

@saphid
saphid / before-after-transcript.md
Created December 2, 2026 22:51
fix(pi): report file-change kind on edit and write runtime approval requests verification

Pi approval kinds: before and after

The production T3 Pi adapter launched Pi 0.80.3 in offline RPC mode with its shipped permission bridge, an isolated workspace, and the approval-required policy. A deterministic in-process Pi model fixture supplied built-in edit, write, and bash tool calls; Pi itself validated the calls and emitted the confirmation frames. No model service or account was used. The probe matched the pending runtime request and approval item by request ID, printed the two kinds, and declined each approval.

Before: d771f9f20142ed00a4ecee5451e9745939e4aafd

Allow edit? runtime_request.updated.kind=command turn_item.updated.requestKind=file-change
Allow write? runtime_request.updated.kind=command turn_item.updated.requestKind=file-change
Allow bash? runtime_request.updated.kind=command turn_item.updated.requestKind=command
@PapiOso521
PapiOso521 / peptio-precios.peptio
Created December 2, 2026 22:51
Peptio — precios de péptidos Pepper Preppers. Datos de listas publicas de proveedores.
{
"formato": "peptio",
"version": 1,
"generado": "2026-12-02T22:09:21.354Z",
"app": "Peptio",
"autor": "fabikeyi",
"grupo": "Pepper Preppers",
"tablas": {
"proveedores": [
{
@xallace
xallace / README.md
Created December 2, 2026 22:51
PC-268: Input-based boundary law for two-qubit relative entropy of entanglement — proof and verification

PC-268: the local entanglement cost of crossing a regular two-qubit separability boundary

Result. Just outside a smooth part of the separable set, the relative entropy of entanglement is quadratic in the magnitude of the negative partial-transpose eigenvalue. Its coefficient is determined by the input density matrix; no closest separable state is needed. Along a straight path tangent to the boundary this gives, when the curvature is nonzero, a quartic rather than a quadratic law in the path parameter. This is a partial analytical result for PC-268, not the exact formula for arbitrary two-qubit states, a claim of bibliographic priority, or an official checker verdict.

1. A formula in terms of the input alone

All density matrices below have trace one. Let $\Gamma$ denote partial transpose on the second qubit in the computational basis. For two qubits the separable states are exactly the positive-partial-transpose (PPT) states. Write $

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created December 2, 2026 22:51
ncrunch-console v5.23.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-3242837659-555866679-4028034677-1000</user>
<keys>
<key installerType="Msi" displayName="NCrunch Console Tool" displayVersion="5.23.1">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{088ECF54-50A1-4F2A-9264-B0AE52A0298D}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{088ECF54-50A1-4F2A-9264-B0AE52A0298D}]]></UninstallString>
@Jotalea
Jotalea / arch-eac.sh
Created December 2, 2026 22:51
Easy Anti-Cheat installer for Arch-based distros
#!/usr/bin/env bash
#
# arch-eac.sh - prepare a plain Arch Linux install (systemd-boot, ESP at /boot)
# for Easy Anti-Cheat Linux v2 (Fortnite) using CachyOS's signed EAC kernel.
#
# The procedure follows CachyOS's own eac-setup / eac-status tools
# (https://wiki.cachyos.org/configuration/easy_anti_cheat/), adapted so that it
# does not need cachyos-settings and keeps the CachyOS repo BELOW Arch's.
#
# Usage:
@forkyau
forkyau / hourly_rainfall_data-2026-12-03|06-30.csv
Created December 2, 2026 22:51
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
1 湿地公园 RF002 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
2 水边围 N12 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
3 石岗 RF003 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
4 大美督 RF004 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
5 大埔墟 RF005 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
6 北潭涌 RF006 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
7 滘西洲 RF007 0 mm 2026-12-03T06:30:00+08:00 2026-12-03
8 西贡 N15 M mm 2026-12-03T06:30:00+08:00 2026-12-03
@Monfraal
Monfraal / log-📂・suporte--dúvidas・manokalt.html
Created December 2, 2026 22:50
Log Imperial RP - Ticket #📂・suporte--dúvidas・manokalt
<!doctype html><html data-stencil-build="phvt1bmn" class="hydrated"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style sty-id="sc-discord-messages">@import url('https://fonts.bunny.net/css?family=roboto:400,500,700');@font-face{font-family:'Whitney';src:url('https://cdn.jsdelivr.net/gh/ItzDerock/discord-components@master/assets/fonts/Book.woff') format('woff');font-weight:400;font-display:swap}@font-face{font-family:'Whitney';src:url('https://cdn.jsdelivr.net/gh/ItzDerock/discord-components@master/assets/fonts/Medium.woff') format('woff');font-weight:500;font-display:swap}@font-face{font-family:'Whitney';src:url('https://cdn.jsdelivr.net/gh/ItzDerock/discord-components@master/assets/fonts/Semibold.woff') format('woff');font-weight:600;font-display:swap}@font-face{font-family:'Whitney';src:url('https://cdn.jsdelivr.net/gh/ItzDerock/discord-components@master/assets/fonts/Bold.woff') format('woff');font-weight:700;font-display:swap}.discord-messages{color:#fff;
@AlyciaBHZ
AlyciaBHZ / r117-independent-check.json
Created December 2, 2026 22:50
Exact balanced CM boundary: 65536 strict Sylvester checks and complete cross budgets
{
"status": "pass",
"scope": "Independent exact M=4 overlap identities and rational budgets; not Lean",
"direct_overlap_symbol_identities": 324,
"wrap_carry_identities": 81,
"sectors": [
-1,
0,
1
],
Pipeline still running ...
PipelineRun is still running: Tasks Completed: 30 (Failed: 0, Cancelled 0), Incomplete: 6, Skipped: 19
[get-pr-number : parse-pr-url] 2026-12-02T21:54:22.51Z + tee /tekton/results/git_pr_number
[get-pr-number : parse-pr-url] 2026-12-02T21:54:22.52Z + echo -n 10484
[get-pr-number : parse-pr-url] 2026-12-02T21:54:22.52Z 10484
[acquire-lease : create-lease] 2026-12-02T21:54:36.26Z + calculate_duration_in_seconds 90m
[acquire-lease : create-lease] 2026-12-02T21:54:36.26Z + '[' m == m ']'
[acquire-lease : create-lease] 2026-12-02T21:54:36.26Z + TOTAL_DURATION_IN_SECONDS=5400
[acquire-lease : create-lease] 2026-12-02T21:54:36.26Z + export TOTAL_DURATION_IN_SECONDS
@aman179102
aman179102 / ARCHITECTURE.md
Created December 2, 2026 22:49
High-Concurrency PostgreSQL Connection Pool Manager with AsyncPG & Dynamic Sizing

High-Concurrency AsyncPG Connection Pooling & Prepared Statement Management

Problem Statement

In microservices handling tens of thousands of concurrent requests, database connections are an expensive bottleneck. Naive connection instantiation leads to socket exhaustion and high TCP handshaking latency. AsyncPG connection pooling optimizes throughput by maintaining pre-warmed connections with prepared statement binary caching directly against PostgreSQL.

Architecture Topology

+-----------------------------------------------------------------------------------+
|               HIGH-CONCURRENCY DATABASE CONNECTION ARCHITECTURE                   |