Skip to content

Instantly share code, notes, and snippets.

View wallentx's full-sized avatar
:shipit:
ȋ̴͎ ̶̘͝u̷̥͆s̴͖̾ē̷̠ ̶̟̉a̴͙̕ŗ̸͆č̶̬ḣ̷̭ ̴̡̄b̷̳̒ẗ̷͍ẘ̴̡

William Allen wallentx

:shipit:
ȋ̴͎ ̶̘͝u̷̥͆s̴͖̾ē̷̠ ̶̟̉a̴͙̕ŗ̸͆č̶̬ḣ̷̭ ̴̡̄b̷̳̒ẗ̷͍ẘ̴̡
View GitHub Profile
# Default OMZ theme for Archcraft
NUM_DIR=2
DIR_PATH="%F{8}%K{8} %F{7} %F{7}%$NUM_DIR~ %{%k%}%F{8}"
background_jobs="%(1j.%F{8}%K{8} %F{3} %{%k%}%F{8}%f.)"
non_zero_return_value="%(0?..%F{8}%K{8} %F{1} %{%k%}%F{8}%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{8}%K{8} %F{7} %K{8} "
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{%k%}%F{8} %{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}  "
@wallentx
wallentx / .zshrc
Last active November 27, 2025 19:22
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="osx2"
for p in "${plugins[@]}"; do
target="${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/$p"
if [[ ! -d "$target" ]]; then
echo "[oh-my-zsh] Installing missing plugin: $p"
git clone "https://github.com/${p}/${p}.git" "$target" 2>/dev/null \
|| echo "[oh-my-zsh] Failed to auto-install $p"
fi

USB-C Receptacle Pinout (Color-Coded, Horizontal)

flowchart LR

  %% Bottom row: B-side pins (front view, pin side)
  subgraph Brow["B-side (Bottom Row)"]
    direction RL
    B12["B12<br />GND"]:::gnd ---
    B11["B11<br />TX2+"]:::ss ---
@wallentx
wallentx / cursor-cli-termux-installer
Last active November 27, 2025 19:13
Cursor CLI installer for Termux
#!/usr/bin/env bash
set -euo pipefail
# This script downloads the official Cursor Agent installer, programmatically
# modifies it for Android/Termux compatibility, and then executes it.
# It uses `sed` and temporary files to inject logic, making it resilient to
# version changes in the official installer.
# --- Helper Functions ---
step() { echo -e "\033[0;34m▸\033[0m $1"; }
@wallentx
wallentx / dumberpipe
Created July 28, 2025 18:36
dumber than dumbpipe
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<EOF
Usage:
dumberpipe listen PORT
dumberpipe send [-s SRC_IP] REMOTE_HOST:PORT FILE
Options:
@wallentx
wallentx / steamos-add-to-steam
Created May 29, 2025 06:35
SteamOS CLI scripts
#! /bin/sh
set -e
add_to_steam() {
encodedUrl="steam://addnonsteamgame/$(python3 -c "import urllib.parse;print(urllib.parse.quote(\"$1\", safe=''))")"
touch /tmp/addnonsteamgamefile
steam "$encodedUrl"
}
#!/usr/bin/env bash
set -euo pipefail
usage() {
cat <<EOF
Usage: $(basename "$0") INPUT_IMAGE OUTPUT_IMAGE [MULTIPLY_FACTOR] [POW_FACTOR]
INPUT_IMAGE source file (e.g. emoji.png)
OUTPUT_IMAGE destination (e.g. emoji-hyper.png)
MULTIPLY_FACTOR brightness multiplier (default: 1.5)
@wallentx
wallentx / btrfs-drain
Created March 24, 2025 06:31
Fuck them btrfs drives
#!/usr/bin/env bash
set -e
## Description:
## This script is an orchestrator that scans for btrfs volumes under PLOTS_BASE only once
## and then spawns one worker process per btrfs volume.
##
## Each worker is responsible for draining its assigned btrfs volume—one plot at a time—
## by transferring a *.plot file (from anywhere within that volume) to a suitable target drive.
## The worker computes the relative path of each plot using realpath so that the directory
@wallentx
wallentx / deepseek-r1.md
Created January 29, 2025 18:20
Can DeepSeek R1 🍓

How many r's are in the word strawberry? 👤

🐋   Step 1: Understanding the Problem

Before jumping into counting, it's essential to comprehend what's being asked. The question is straightforward: determine the number of times the letter 'r' appears in the word "strawberry." To do this accurately, I need to:

  1. Identify the word in question: "strawberry."
  2. Focus on the letter 'r': I'm only interested in counting this specific letter, not any others.
  3. Ensure accuracy: I must examine each letter in the word to avoid missing any 'r's or counting them incorrectly.

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

[!WARNING]