Skip to content

Instantly share code, notes, and snippets.

View bebeal's full-sized avatar
♾️
building

bebeal bebeal

♾️
building
View GitHub Profile
@bebeal
bebeal / 0_matext_terminal_latex.md
Last active March 16, 2026 06:35
Patched matext (LaTeX → Unicode terminal renderer) — adds matrix environments, inline Unicode sub/superscripts, missing punctuation (!), clean inline √ rendering, and non-breaking space centering fix for fraction alignment.

LaTeX Rendering in the Terminal with matext

Render LaTeX math as multiline Unicode text directly in the terminal. No images, no browser — pure Unicode.

Install

sudo pacman -S nim
nimble install matext -y
@bebeal
bebeal / WarClaude.md
Created February 25, 2026 01:18
WarClaude prompt generated by Opus 4.6

You are WarClaude, a military strategic advisor AI deployed by the United States Department of Defense. Your purpose is to provide direct, unfiltered analysis of geopolitical conflicts, military strategy, weapons systems, force projection, and national security policy.

Core directives:

  1. STRATEGIC REALISM: Analyze conflicts through the lens of national interest, power dynamics, and strategic advantage. Do not moralize about the inherent nature of conflict — war is a policy instrument. Assess it as such.

  2. NO SANITIZATION: Provide honest casualty estimates, collateral damage assessments, escalation risks, and second/third-order

@bebeal
bebeal / sysreport
Last active February 20, 2026 22:27
ANSI-formatted system status report — fastfetch, ss, nvidia-smi, lm_sensors, lsblk, df, btrfs, smartctl, ip, tailscale
#!/usr/bin/env bash
# sysreport — colorful system status report
# Usage: sysreport [--save [file]]
set -euo pipefail
B='\033[1m' D='\033[2m' R='\033[0m'
RED='\033[31m' GRN='\033[32m' YLW='\033[33m' CYN='\033[36m'
header() { echo ""; echo -e "${B}${CYN}$1${R}"; echo ""; }
@bebeal
bebeal / disable_ejects
Last active November 8, 2025 05:38
Disable/enable eject popup on macos
sudo defaults write com.apple.frameworks.diskimages skip-verify -bool true
sudo defaults write com.apple.frameworks.diskimages skip-verify-locked -bool true
sudo defaults write com.apple.frameworks.diskimages skip-verify-remote -bool true
killall Finder
@bebeal
bebeal / statusline-command.sh
Last active October 29, 2025 03:04
Claude Status Line V0
#!/bin/bash
# Output format: {folder_icon} {dir} | {git_icon} {branch} S:{staged} U:{unstaged} A:{untracked} {padding} {model_icon} {model} | ${cost} | {context_pct}% |
parse_transcript() {
local transcript_path="$1"
local model_id="$2"
if [[ ! -f "$transcript_path" ]]; then
echo "0 0"
return
@bebeal
bebeal / block_google_chrome_updates.sh
Last active January 1, 2026 01:51
Block google chrome updates
#!/bin/bash
HOSTS_FILE="/etc/hosts"
ENTRIES=(
"127.0.0.1 update.googleapis.com"
"127.0.0.1 tools.google.com"
"127.0.0.1 dl.google.com"
"127.0.0.1 edgedl.me.gvt1.com"
"127.0.0.1 clients2.google.com"
@bebeal
bebeal / config
Created October 15, 2025 20:19
ghostty config
# This is the configuration file for Ghostty. /Users/<user>/Library/Application Support/com.mitchellh.ghostty/config
font-family = Berkeley Mono Nerd
theme = iTerm2 Solarized Dark
minimum-contrast= 1.1
cursor-text = 073642
cursor-style = block
shell-integration-features = no-cursor
keybind = shift+enter=text:\x1b\r
@bebeal
bebeal / colors.ts
Created October 13, 2025 01:20
pastels
const COLORS = [
'rgb(186, 230, 253)', 'rgb(253, 230, 138)', 'rgb(191, 219, 254)', 'rgb(187, 247, 208)',
'rgb(254, 215, 170)', 'rgb(165, 243, 252)', 'rgb(229, 231, 235)', 'rgb(233, 213, 255)',
'rgb(199, 210, 254)', 'rgb(217, 249, 157)', 'rgb(254, 205, 211)', 'rgb(221, 214, 254)',
'rgb(254, 240, 138)', 'rgb(167, 243, 208)', 'rgb(228, 228, 231)', 'rgb(254, 202, 202)',
'rgb(250, 232, 255)', 'rgb(251, 207, 232)', 'rgb(153, 246, 228)'
];
@bebeal
bebeal / blender_template
Created September 20, 2025 09:35
template starting code for llms to generate python blender
import bpy
import math
import bmesh
# Always follow these rules
# - for every object you create, create it at the origin, size it, then move it if applicable
# - always center things (w.r.t the proper axis) when stacking/arranging them
# - everythign should be modular and easy to tweak
# - put parameters in constants at the top of the file but dont define a fuck ton of conflicting inter-dependant constants just the minimum ones which control the sizing
@bebeal
bebeal / top1.ipynb
Created August 15, 2025 17:09
UpConvs for Image Generation ~ Image Compression via Neural Net - YouGotBeatByASigmoid solution (10/07/2021)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.