Skip to content

Instantly share code, notes, and snippets.

View h4x0r's full-sized avatar
πŸ€“
vibe coding

Albert Hui h4x0r

πŸ€“
vibe coding
View GitHub Profile
# Engineering & Writing Disciplines (Shareable Core)
These directives encode the disciplines where a capable coding agent's **default behavior diverges from good practice**. They are framed around failure modes, not as a textbook restatement of principles the model already half-knows. Portable across projects and users; no personal or environment-specific config lives here.
## Doer-Checker β€” Never Trust Code You Validated Only With Tests You Wrote
- **Tests you wrote yourself are not independent validation.** If you wrote the code AND the tests, the tests inherit your blind spots and can pass while the code is wrong against real inputs.
- **Always validate against real external data** β€” files downloaded from authoritative sources, samples sourced through research, documents provided by the user β€” not only synthetic fixtures you constructed yourself.
- For document processing (docx, pdf, csv, etc.): source a handful of real files via web research before declaring correctness. Synthetic fixtures miss real-wo
@h4x0r
h4x0r / CLAUDE.md
Last active September 26, 2025 07:50
Global Development Principles - CLAUDE.md: Universal development methodology for AI-assisted software engineering

Universal AI-Assisted Development Principles - CLAUDE.md

Universal development methodology for AI-assisted software engineering

Created by Albert Hui albert@securityronin.com LinkedIn Website

🎯 Core Philosophy

Build software that works reliably, ships quickly, and evolves gracefully through systematic principles and AI-human collaboration.

@h4x0r
h4x0r / viralad.md
Last active September 18, 2025 04:07
Viral Social Media Content & Carousel Recipe

πŸš€ VIRAL SOCIAL MEDIA CONTENT & CAROUSEL RECIPE


1️⃣ FULL STEP-BY-STEP RECIPE

| Step | Purpose (What/Why) | How To Use / Sample Language |

@h4x0r
h4x0r / consolidate_evtx.sh
Last active June 10, 2025 02:18
Pull all .evtx underneath a directory into the current directory, prefixed with the directory name, for multi-host bulk processing
#!/bin/sh
for d in "$@"; do
fdfind '.evtx$' $d -x cp {} "$d#{/}β€œ
done
@h4x0r
h4x0r / ipagrabber.py
Last active July 29, 2025 11:24 — forked from n0mi1k/ipagrabber.py
.IPA file extracter for Apple Configurator
import os
import shutil
"""
Steps to retrieve the IPA file from the Configurator app:
1. Install Apple Configurator from the Mac App Store and sign in
2. Connect your iOS device to your Mac
3. Select "Add > Apps..." and search for the app you want to install, click "Add"
4. The newer Apple Configurator deletes the IPA after installing it, so you'll need to use this tool to grab it
@h4x0r
h4x0r / mount_e01.sh
Last active April 20, 2024 10:37
Mount .e01 on Mac
# first manually install macFUSE (https://github.com/osxfuse/osxfuse/releases)
brew uninstall libewf # Homebrew libewf isn't compiled with libfuse support
# download libewf (libewf-experimental-20231119.tar.gz)
mkdir -p ~/src && cd ~/src
wget -O- https://github.com/libyal/libewf/releases/download/20231119/libewf-experimental-20231119.tar.gz | tar zxvf -
cd libewf-20231119
CFLAGS="-I/opt/homebrew/include -L/opt/homebrew/lib" ./configure --enable-wide-character-type=yes
sudo make install
sudo ewfmount -X volicon=/Library/Filesystems/macfuse.fs/Contents/Resources/Volume.icns foo.e01 /Volume/foo
sudo hdiutil attach -imagekey diskimage-class=CRawDiskImage /Volumes/foo/ewf1

Keybase proof

I hereby claim:

  • I am h4x0r on github.
  • I am alberthui (https://keybase.io/alberthui) on keybase.
  • I have a public key whose fingerprint is 162A 19C5 B066 55F5 0DB2 FAC8 6525 2496 00FE 448C

To claim this, I am signing this object: