Shell Essentials

Echo & Variables

Shortcuts

Pipes & Redirection

Useful Commands

Custom Functions

mcd () {
    mkdir -p "$1"
    cd "$1"
}
source mcd.sh

Python One-Liner

#!/usr/bin/env python
import sys
for arg in reversed(sys.argv[1:]):
    print(arg)

Vim Quick Reference

Key Action
i Enter insert mode
Esc Exit insert mode
r Replace character
k Move up
s-v Visual line select
c-v Visual block select
: Command mode

Docker Tips

Shrink WSL Disk

wsl --shutdown
diskpart
select disk file="C:\Users\[USER]\AppData\Local\Docker\wsl\disk\docker_data.vhdx"
compact disk

GitHub Tips

Quick Access

GitIngest

Turn any GitHub repo into readable text for LLMs. Replace “hub” with “ingest” in the URL:

PR Code Review

Add .diff to the end of any PR URL to see raw changes. Paste into ChatGPT/Grok for AI code review:

GitSummarize

Replace “hub” with “summarize” in any GitHub URL for AI-powered documentation: