Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

A home for the small scripts I keep reaching for.

Some came from HPC work, some fix annoying system problems, and others are little command-line tools that save me from repeating the same steps. They live here because they are useful, not because they need to become full projects.

Using a Script

Run the collection without cloning or installing it:

curl -fsSL https://github.com/keys-i/scripts/raw/refs/heads/main/run.sh | bash

The /blob/ URL is a web page and cannot be piped to a shell. The /raw/ endpoint above downloads one temporary source archive, opens the responsive dashboard when uv and a terminal are available, and removes the archive when the selected command exits. Streamed use needs curl, tar, and either Python 3.11+ or uv. On Windows, use Git Bash with native Windows Python or uv; WSL runs the Linux catalog instead.

The same entry point lists scripts, renders any adjacent .man page, or runs a command directly:

RUN=https://github.com/keys-i/scripts/raw/refs/heads/main/run.sh
curl -fsSL "$RUN" | bash -s -- list
curl -fsSL "$RUN" | bash -s -- matrix
curl -fsSL "$RUN" | bash -s -- man disk
curl -fsSL "$RUN" | bash -s -- disk health
curl -fsSL "$RUN" | bash -s -- security-audit audit --scope system
curl -fsSL "$RUN" | bash -s -- slurm plan slurm.toml

man SCRIPT uses Glow when available and otherwise prints plain Markdown. The same manuals drive the dashboard, so there is no second help source to drift. From a local checkout, use the shorter equivalents:

./run.sh
./run.sh list
./run.sh matrix
./run.sh man disk
./run.sh clean

Cleanup scripts always preview first and require explicit confirmation before applying changes. The agent research records supported clients and cleanup limits; the security research explains scanner, CVE, KEV, and host-check coverage; the Slurm example shows every resource and command option.

Remote execution still runs mutable code from main; review it before use or replace main with a trusted commit SHA.

Caution

Read system and cleanup scripts before running them. Use the least privilege needed and back up anything you cannot replace.

File Structure

bin/  # Ready-to-run command-line tools
dev/  # Helpers for development, repositories, and local workflows
lib/  # Shared code used by more than one script
sys/  # OS maintenance, cleanup, and fixes

Scripts are grouped by purpose rather than programming language. Platform- specific scripts can be placed below sys/ when needed.

Contributing

This is mainly my toolbox, but focused fixes and genuinely useful scripts are welcome. Read the contribution rules before opening a pull request.

Please report security problems privately by following the security policy.

About

Useful, tested scripts for development, systems and everyday command-line work.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages