Skip to content

Instantly share code, notes, and snippets.

View vjt's full-sized avatar
πŸ’­
looking at the stars

Marcello Barnaba vjt

πŸ’­
looking at the stars
View GitHub Profile
@vjt
vjt / README.md
Last active November 26, 2026 21:08
shadPS4: Assassin's Creed Valhalla, Not enough watchers

Assassin's Creed Valhalla (CUSA18522): Not enough watchers

PageManager::UpdatePageWatchersForRegion updates page states it never reserved, so the watcher count of a fresh page underflows. Calling EnsurePages on the region first, as UpdatePageWatchers does, removes the assert.

New Game, 212 s in game per run, same sources with and without the two lines (runs.tsv):

build runs Not enough watchers
without the change 3 3, while New Game loads, on Loading Thread or TaskThread02
with the change 3 0
@vjt
vjt / README.md
Last active November 26, 2026 21:05
shadPS4: Days Gone, GPU timeout from page watchers left on a remapped range

Days Gone (CUSA09175): GPU timeout from a page watcher that outlives an unmap

A watcher count left on a range that is unmapped and mapped again keeps the new pages writable, so the buffer cache misses guest writes to them. A fragment shader then reads its loop bound from a stale copy and does not end. Dropping the tracking state in Rasterizer::MapMemory removes those binds.

Build without the change, the run that hung (without-change-hung-run-g2.log), page 0x2031aa000, scheduler ticks:

tick event
20030 guest unmaps 0x2030b0000, 1 MiB; texture cache untracks it
20039 texture cache tracks the same range again (PageManager::UpdatePageWatchers) while it is unmapped: count 1
@vjt
vjt / README.md
Created November 26, 2026 20:09
shadPS4: Days Gone, cleared CMask read as expanded

Days Gone (CUSA09175): cleared CMask read back as expanded

The UI overlay is fast cleared and nothing is drawn on it. BufferCache::SynchronizeMemoryFromImage fills its CMask buffer with 0xFFFFFFFF anyway, so the game's compute pass composites the whole overlay, which still holds an older pass. Filling a cleared CMask with 0 removes the copies.

RenderDoc capture of one frame, intro cutscene:

event what
e109777 subsurface setup pass renders into image 22040 (R8G8B8A8Srgb 1920x1080 at 0x21e220000), 65% dynamic resolution
e110239 vkCmdFillBuffer 0xFFFFFFFF on the CMask at 0x21ea18000, from SynchronizeMemoryFromImage. All 5 fills of the frame come from there; no guest compute shader writes the CMask
@vjt
vjt / sottr-5665-README.md
Created November 25, 2026 10:10
SotTR with shadPS4 #5665
@vjt
vjt / irc_codex_bridge.py
Last active September 9, 2026 09:23
PoC: bridge IRC <-> codex in a tmux pane (python, stdlib only) β€” NOT tested against a real codex
#!/usr/bin/env python3
"""
irc_codex_bridge.py β€” proof of concept: collega un canale IRC a Codex parlando
il suo protocollo vero, `codex app-server` (JSON-RPC 2.0 su stdio).
Il bridge fa da client: spawna `codex app-server`, fa l'handshake, apre un
thread e per ogni riga IRC che lo nomina manda un `turn/start`, accumula il
testo dell'agente e lo rimanda in canale spezzato a misura di IRC.
python3 irc_codex_bridge.py \
@vjt
vjt / debian-alongside-windows.md
Last active August 19, 2026 19:38
Debian alongside Windows on one disk, then reclaim the whole disk (LVM, no partition moving)

Debian alongside Windows, then reclaim the whole disk

Low-effort path for a single-disk box that currently runs Windows, when you want a migration window with both systems and then Windows gone and Linux grown into the free space β€” without ever moving a partition by hand.

The one decision that saves you later: install on LVM. Growing an LV over freed space is an online, one-command job. Growing a plain partition means booting a live image and moving things around, which is the part that goes wrong.

@vjt
vjt / gist_backlog_triage.md
Created August 2, 2026 10:41
grappa-irc β€” sfoltimento coda issue, proposta 2026-08-02 (roadmap escluse)

grappa-irc β€” sfoltimento coda, proposta (2026-08-02)

Roadmap escluse su richiesta di vjt: #454 #442 #384 #383 #362 #311 #288 #261 #167 #108 #106 #102 #99 #65 #5 non compaiono qui.

Io propongo, non chiudo. Serve un OK, per bucket o per riga.

Il numero prima dell'opinione

  • 114 aperte al 2026-08-02.
  • 140 chiuse negli ultimi 7 giorni (closed:&gt;=2026-07-26).
@vjt
vjt / diostronzo_dnssec.md
Last active June 29, 2026 10:10
diostronzo.org DNSSEC values for INWX (public DS/DNSKEY)

diostronzo.org β€” DNSSEC per INWX

Scegli UNA delle due vie (non entrambe).

Via A β€” DS Record (consigliata)

Lascia DNSKEY RR vuoto. TOGLI la spunta "auto calculate digest".

Campi separati:

Key Tag: 2371

@vjt
vjt / my-cc-statusline-plan.md
Created April 30, 2026 12:03
my-cc-statusline plugin packaging plan

my-cc-statusline β€” plugin packaging plan

Package ~/.claude/statusline.sh (actually Python 3, stdlib only) as a Claude Code plugin distributable from a public GitHub repo.

Findings

CC plugins can ship a statusline, but not via plugin.json. Mechanism: ship a settings.json at plugin root with a statusLine block. CC merges plugin settings when the plugin is enabled (user ~/.claude/settings.json wins on conflict). Install flow: /plugin marketplace add vjt/my-cc-statusline then /plugin install my-cc-statusline@vjt/my-cc-statusline. Refs:

@vjt
vjt / qignore.pl
Last active April 25, 2026 10:20
irssi qignore -- per-mask + per-bridge-subuser ignore w/ persistence + smart cloak detection (commissioned by nextime, written by vjt-claude)
use strict;
use warnings;
use Irssi;
use vars qw($VERSION %IRSSI);
$VERSION = '0.4';
%IRSSI = (
authors => 'vjt-claude (commissioned by nextime)',
contact => 'nextime on Azzurra',
name => 'qignore',