Skip to content

Instantly share code, notes, and snippets.

View skooch's full-sized avatar
🙇
ありが謝謝so much

skooch skooch

🙇
ありが謝謝so much
View GitHub Profile
@skooch
skooch / README.md
Last active April 28, 2026 08:58
MoltenVK #2220 — allowGPUOptimizedContents predicate probe (companion to PR fix)

MoltenVK #2220 — allowGPUOptimizedContents predicate probe

Companion artifact for KhronosGroup/MoltenVK#2220.

The probe creates a VkImage for each combination of (format, usage, create-flags) in a small matrix and reads back the resulting MTLTexture.allowGPUOptimizedContents (and MTLTexture.usage) via VK_EXT_metal_objects. It exists to make the impact of a candidate predicate change in MVKImagePlane::newMTLTextureDescriptor() visible without needing to reproduce the end-to-end channel corruption (which only manifests inside specific game render pipelines).

Build

# Point MVK at any MoltenVK source tree that has been built (Package/Debug/MoltenVK or Package/Release/MoltenVK)
@skooch
skooch / xcode_cleanup.sh
Last active April 25, 2026 01:45
XCode Clean Up Script
#!/usr/bin/env bash
set -euo pipefail
# =============================================================================
# XCode Cache, Simulator & SDK Cleanup Script
# by @skooch
# =============================================================================
#
# Removes old SDKs, simulators, simulator images, caches, and device support
@skooch
skooch / audit-claude-instructions.md
Created April 1, 2026 04:58
Skill for auditing CLAUDE instructions
name audit-instructions
description Audit and maintain CLAUDE.md and system-prompt.md for compaction resilience. Use when the user says "/audit-instructions", "audit my instructions", "check my CLAUDE.md", "incorporate corrections", "review corrections.md", or wants to ensure instruction files survive context compaction. Also use proactively after significant changes to instruction files.

Audit Instructions

You are auditing the instruction files that govern Claude Code behavior. These files must survive context compaction with full authority. Every rule must be written so that even after lossy compression of conversation history, the model still follows it.

Files to audit

@skooch
skooch / lsproxy.js
Created April 4, 2024 02:02
localStorage.getItem proxy
Object.defineProperty(window, 'localStorage', {
configurable: true,
enumerable: true,
value: new Proxy(localStorage, {
set: function (ls, prop, value) {
console.log(`direct assignment: ${prop} = ${value}`);
debugger;
ls[prop] = value;
return true;
},
#!/usr/bin/env bash
while true; do
echo "ss23 rly, completely, sux"
sleep 1
done
#!/usr/bin/env bash
while true; do
echo "ss23 rly sux"
sleep 1
done
/*
* Draw bouncing ball pattern on screen
* Increase/decrease ball pattern number by up/down key
* Read sound data from boot disk and play back as BGM
* Copyright (C) 1996 Sony Computer Entertainment Inc.
1 Were no strangers to love
2 You know the rules and so do I
3 A full commitments
4 What Im thinking of
5 You wouldn't get this
6 From any other guy
7 I just wanna tell you
8 How Im feeling
9 Gotta make you understand
10 Never gonna give you up
@skooch
skooch / gist:b6317da6fadb7fa802a6e237e75abc5c
Created September 15, 2016 04:00
How to say "No" in every language supported by Google Translate.
Afrikaans: Geen
Arabic: لا
Azerbaijani: Yox
Belarusian: няма
Bulgarian: Не
Bengali: না
Bosnian: ne
Catalan: No
Cebuano: Dili
Czech: Ne
@skooch
skooch / gist:d0973cfab271607a3b5345c4f13fabec
Created May 3, 2016 23:20
Unpatched ImageMagick RCE + Timeline || Mirrored from http://pastebin.com/aE4sKnCg
The exploit was posted at Hacker News comments thread, so it's time to
disclose the full story.
Nikolay Ermishkin from the Mail.Ru Security Team discovered several
vulnerabilities in ImageMagick.
We've reported these issues to developers of ImageMagick and they made a
fix for RCE in sources and released new version (6.9.3-9 released
2016-04-30 http://legacy.imagemagick.org/script/changelog.php), but this
fix seems to be incomplete. We are still working with developers.