Skip to content

Instantly share code, notes, and snippets.

View hed0rah's full-sized avatar
🤠
droppin the ball

hed0rah hed0rah

🤠
droppin the ball
View GitHub Profile
@hed0rah
hed0rah / msdos-textmode-corruption.txt
Created June 30, 2026 05:56
MS-DOS VGA Video Register & Text Mode Corruption
=============================================================================
MS-DOS VGA VIDEO HARDWARE & DIRECT MEMORY MANIPULATION
=============================================================================
[1] BIOS INTERFACE FONT MISMATCHES (INT 10h)
--------------------------------------------------------------------------------
Forces the VGA BIOS to map non-native physical ROM font heights into the active
16-pixel high text grid. Forcing mismatched metrics causes row duplication,
truncation, and structural distortions.
@hed0rah
hed0rah / gcc-security.md
Created June 28, 2026 22:44
GCC security related flags reference (2026 edition)
@hed0rah
hed0rah / tabby_stuff..css
Created June 16, 2026 23:00
tabby cool CSS
/* font here - https://github.com/ahatem/IoskeleyMono */
:root {
--ug-accent: #e8602b; /* CS-100 amber-orange. FLX vermilion = #e5421f */
--ug-ink: #0d0d0e; /* near-black ground */
--ug-line: rgba(255,255,255,0.08);
}
/* ---- tab bar: flat document header, hairline base ---- */
app-root > .content .tab-bar,
@hed0rah
hed0rah / hovercraft.sh
Last active June 14, 2026 19:36
hand rolled namespace container
#!/usr/bin/env bash
#
# hovercraft.sh - Build an ultra-stripped BusyBox from scratch,
# populate a minimal rootfs, and pivot into an isolated namespace.
#
set -euo pipefail
ROOT="${1:-/tmp/handroll-rootfs}"
HOSTNAME_IN="earth"
CR=$'\r'
@hed0rah
hed0rah / getbusy.sh
Created June 14, 2026 08:21
stripped busybox
#!/usr/bin/env bash
set -euo pipefail
CR=$'\r'
openssl s_client -connect busybox.net:443 -quiet 2>/dev/null <<EOF | sed '1,/^\r$/d' > busybox-1.38.0.tar.bz2
GET /downloads/busybox-1.38.0.tar.bz2 HTTP/1.1${CR}
Host: busybox.net${CR}
Connection: close${CR}
${CR}
@hed0rah
hed0rah / .bashrc_public
Last active June 12, 2026 17:19
bashrc functions for fzf, batcat, git, bitwise ops, conversions
# Public Bash helper pack: fzf/bat previews, git pickers, process picker,
# numeric conversions, bitwise helpers, and CIDR scratchpad.
#
# Install:
# cp .bashrc_share ~/.bashrc_share
# printf '\n[ -f "$HOME/.bashrc_share" ] && . "$HOME/.bashrc_share"\n' >> ~/.bashrc
#
# Requires Bash 3.2+.
# Optional tools:
# fzf, bat or batcat, rg, fd, git, pbcopy/wl-copy/xclip/xsel
@hed0rah
hed0rah / git-explore.md
Created May 11, 2026 13:55
git Explore

Git Log Exploration Cheatsheet

Ultimate All-in-One (Graph, Full Message/MR Description, and Code Diff)

git log --graph --patch --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset%n%n%w(80,2,2)%B%n'

Search Commit Messages for Specific Keywords

git log --grep="search term"

Find Commits that Added or Removed Specific Code Strings

git log -S"code_snippet"

@hed0rah
hed0rah / tar_git_exlude.sh
Created April 29, 2026 19:57
tarball exclude revision controll stuff
tar \
--exclude='.git' \
--exclude='node_modules' \
--exclude='__pycache__' \
--exclude='.venv' \
--exclude='venv' \
--exclude='.next' \
--exclude='dist' \
--exclude='build' \
--exclude='target' \
@hed0rah
hed0rah / x8r_overview_beta.md
Created April 21, 2026 14:34
x8r overview (preview)

x8r

A native CLI + shared library that answers two questions fast: "how many tokens is this file?" and "where do I cut it at ≤N tokens without slicing a function in half?"

What it is

  • single-purpose token-aware chunker for LLM agent tools
  • drop-in replacement for calling tiktoken in a subprocess loop
  • emits byte offsets [start, end) + token counts + boundary kind

Why

@hed0rah
hed0rah / gist:3f12cfd9e8e397b83770ad1b9631be75
Created April 18, 2026 23:23
Windows 11 Pro 25H2 -- AI and Telemetry Lockdown Cheatsheet
# Windows 11 Pro 25H2 -- AI and Telemetry Lockdown Cheatsheet
Tested on build 26200.x. Assumes Windows 11 Pro (gpedit.msc access required for Group Policy sections).
---
## 1. Settings App
### Privacy & Security > General