Snippets

Short, self-contained, vetted reference scripts. Open a sheet for usage, input/output, and source.

SHEET 10 OF 10
REV 2026-08-16
No. 01Python

hash-file

Print the SHA-256 checksum of a file.

No. 02Python

json-pretty-print

Validate a JSON file and pretty-print it.

No. 03Python

find-large-files

List files in a directory over a given size threshold.

No. 04Python

csv-to-json

Convert a CSV file to a JSON array of objects.

No. 05Python

count-lines

Count total lines across files matching a glob pattern.

No. 06Bash

port-check

Check if host:port is reachable within a timeout.

No. 07Bash

backup-file

Make a timestamped copy of a file before you edit it.

No. 08Bash

disk-usage-top

Show the top N largest subdirectories in a path.

No. 09JS

uuid-gen

Print a random UUID v4.

No. 10JS

slugify

Convert a string to a URL-safe kebab-case slug.