Skip to content

Instantly share code, notes, and snippets.

View scarf005's full-sized avatar

scarf scarf005

View GitHub Profile
@scarf005
scarf005 / 0_autofix.txt
Created February 15, 2026 16:38
Cataclysm-BN autofix workflow run 22038946844 full output
2026-02-15T16:17:26.4020270Z Current runner version: '2.331.0'
2026-02-15T16:17:26.4047985Z ##[group]Runner Image Provisioner
2026-02-15T16:17:26.4049047Z Hosted Compute Agent
2026-02-15T16:17:26.4049653Z Version: 20260123.484
2026-02-15T16:17:26.4050286Z Commit: 6bd6555ca37d84114959e1c76d2c01448ff61c5d
2026-02-15T16:17:26.4050960Z Build Date: 2026-01-23T19:41:17Z
2026-02-15T16:17:26.4051739Z Worker ID: {872e9226-5446-4a96-b488-516a456c63e4}
2026-02-15T16:17:26.4052879Z Azure Region: northcentralus
2026-02-15T16:17:26.4053498Z ##[endgroup]
2026-02-15T16:17:26.4055193Z ##[group]Operating System
@scarf005
scarf005 / 13_lint and test typescript files.txt
Created February 15, 2026 16:38
Cataclysm-BN autofix run 22038946844 failing step log
2026-02-15T16:18:00.3245516Z ##[group]Run # deno lint
2026-02-15T16:18:00.3245818Z # deno lint
2026-02-15T16:18:00.3246038Z deno test --allow-read
2026-02-15T16:18:00.3246376Z deno run --allow-read --allow-write scripts/semantic.ts
2026-02-15T16:18:00.3295976Z shell: /usr/bin/bash -e {0}
2026-02-15T16:18:00.3296243Z env:
2026-02-15T16:18:00.3296443Z DENO_DIR: /home/runner/.cache/deno
2026-02-15T16:18:00.3296692Z ##[endgroup]
2026-02-15T16:18:00.3892867Z Download https://deno.land/std@0.208.0/assert/assert_equals.ts
2026-02-15T16:18:00.3911620Z Download https://jsr.io/@std/assert/meta.json
@scarf005
scarf005 / bn-luajit-migration.md
Created January 10, 2026 05:03
tl;dr: not worth it

● Based on my investigation, here's an analysis of migrating to LuaJIT:

Current State

Lua 5.3.6 bundled in src/lua/, using Sol2 v3.3.0 bindings. Lua is exclusively for modding API (22 hooks like on_game_load, on_shoot, etc.) - NOT core game logic. ~5k lines of mod scripts exist.

LuaJIT Benefits

Performance: LuaJIT is 3-5x faster than Lua 5.3 in most benchmarks:

  • DNS benchmark: LuaJIT 2.1 (0.81s) vs Lua 5.4.2 (3.69s)
{
"attribution": {
"commit": "",
"pr": ""
},
"hooks": {
"SessionStart": [
{
"matcher": "startup",
"hooks": [
#!/bin/bash
# TO USE
# 1. clone github.com/dustinkirkland/hollywood
# 2. cd to hollywood
# 3. install errno/speedometer/cmatrix/apg/hexdump...etc
# 4. download this script into root of hollywood (so hollywood/peace-comes-at-a-price.bash)
# 5. chmod+x peace-comes-at-a-price.bash then launch it
HOLLY=${HOLLY:-$PWD}
1.6.2+46-131b3958-SNAPSHOT
@scarf005
scarf005 / aistudio-search-on.user.js
Last active September 26, 2025 07:03
force enables URL context in aistudio.google.com because some forsaken reason it's not enabled by default
// ==UserScript==
// @name aistudio search and URL context always ON
// @namespace https://github.com/scarf005
// @version 1.2
// @description force enables web search in aistudio.google.com because some forsaken reason it's not enabled by default
// @author scarf005
// @match https://aistudio.google.com/*
// @homepageURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8
// @supportURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8
// @downloadURL https://gist.github.com/scarf005/fddcef68aefaba19bb512cc8a9258cf8/raw/aistudio-urlcontext-on.user.js
// ==UserScript==
// @name 파파존스 무조건 소스많이
// @namespace https://github.com/scarf005
// @description 무조건 소스많이!!!!!!
// @author scarf
// @version 1.2.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
//
// @homepageURL https://gist.github.com/scarf005/fa439569d0d146fb4c25b9a388429d1e
// @supportURL https://gist.github.com/scarf005/fa439569d0d146fb4c25b9a388429d1e
@scarf005
scarf005 / autofill-BN-template.user.js
Last active April 28, 2025 15:26
because how will you do drive-by BN contribution otherwise?
// ==UserScript==
// @name autofill BN PR template
// @namespace https://github.com/scarf005
// @description drive-by BN contribution
// @author scarf
// @version 1.0.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
//
// @homepageURL https://gist.github.com/scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8
// @supportURL https://gist.github.com/scarf005/a290a4aa96eaa7c66ba6282f68bdd7e8

how to only commit successfully fixed files:

  1. run checks
parallel clang-tidy --enable-check-profile --store-check-profile=clang-tidy-trace -fix '--checks=-\*,modernize-use-ranges' {} ::: src/*.{cpp,h}
  1. collect failing build error messages