Skip to content

Instantly share code, notes, and snippets.

View ScottJWalter's full-sized avatar
🔮
Particle. Wave. It's all data.

Scott J. Walter ScottJWalter

🔮
Particle. Wave. It's all data.
View GitHub Profile
@ScottJWalter
ScottJWalter / fs-reset.bash
Created April 30, 2026 21:04
Reset a folder tree to 755/644
#!/bin/bash
#
# fs-reset.bash -- reset a directory tree's permissions
# Set directories to 755
find . -type d -exec chmod 755 {} +
# Set files to 644
find . -type f -exec chmod 644 {} +
@ScottJWalter
ScottJWalter / zsh_on_termux.md
Created April 19, 2026 21:48 — forked from rahaaatul/zsh_on_termux.md
Installing ZSH on Termux including themes & useful plugins

ZSH on Termux!

Spice up termux with beautiful themes and productivity plugins to make your life easier!

Install ZSH, GIT & LSD

pkg install zsh git lsd vim

Install Oh-My-Zsh

@ScottJWalter
ScottJWalter / microgpt.py
Created April 11, 2026 13:39 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@ScottJWalter
ScottJWalter / llm-wiki.md
Created April 11, 2026 13:36 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ScottJWalter
ScottJWalter / .bash_aliases
Last active April 4, 2026 08:53
OpenClaw aliases for the bash/zsh/etc. commandline
alias oc="openclaw"
alias occonfig="$EDITOR ~/.openclaw/openclaw.json"
alias occ="openclaw channels list"
alias occs="openclaw channels status"
alias occl="openclaw channels logs"
alias ocf="openclaw config"
alias ocfg="openclaw config get"
alias ocfs="openclaw config set"
@ScottJWalter
ScottJWalter / scrcpy-launcher.bat
Last active March 30, 2026 17:03
Launches the most recent scrcpy-win64-vX.Y.Z build from the script's directory
@echo off
setlocal enabledelayedexpansion
set "SCRIPT_DIR=%~dp0"
set "BEST_MAJOR=-1"
set "BEST_MINOR=-1"
set "BEST_PATCH=-1"
set "BEST_NAME="
for /d %%D in ("%SCRIPT_DIR%scrcpy-win64-v*") do (
@ScottJWalter
ScottJWalter / traffick.sh
Created March 1, 2026 14:26 — forked from Strykar/traffick.sh
Traffick - NFTables Traffic Monitor: A POSIX-compliant grokker for tagged nftables counters.
#!/bin/sh
set -fuC
# --- USER CONFIG STARTS ---
IN_KEYS="ingress|input|incoming|ollama"
OUT_KEYS="egress|output|outgoing"
SEC_KEYS="drop|deny|reject|block"
# --- USER CONFIG ENDS ---
show_help() {
@ScottJWalter
ScottJWalter / git-cherry-pick-forks.md
Created February 1, 2026 17:53 — forked from jrussellsmyth/git-cherry-pick-forks.md
How to Cherry pick commits across forks

Cherry picking commits across forks

When working with forks in Git, you may need to pull specific commits from one fork to another. This can be useful when you want to include a specific change from one fork to another without merging the entire branch.

From another fork to your fork

From your fork to another fork

From another fork to your fork

  1. Identify the commit hash(es) of the commit(s) you want to cherry-pick. You can find this hash on GitHub or by using git log after fetching.
@ScottJWalter
ScottJWalter / enable-adb-port-for-wsl2.ps1
Created January 15, 2026 18:18 — forked from Steakeye/enable-adb-port-for-wsl2.ps1
Setup ADB on WSL and the Windows host so you can connect to the Android device from WSL
netsh advfirewall firewall add rule name="ADB WSL2: Open Port 5037" dir=in action=allow protocol=TCP localport=5037 remoteip=172.16.0.0/12 profile=domain,private