Scripts of various kinds (but also other scripts)
Find a file
2026-04-02 18:56:31 +02:00
deno unquarantine wrapper for "xattr..." 2026-04-02 18:56:31 +02:00
python complete restructuring, and nixify 2025-10-31 15:18:22 +01:00
.gitignore fix script create_aliases 2025-10-31 15:33:25 +01:00
flake.lock lean harder into nix for scripts 2026-03-16 23:36:35 +01:00
flake.nix unquarantine wrapper for "xattr..." 2026-04-02 18:56:31 +02:00
README.md ffc ffmpeg count frames 2026-03-18 22:33:07 +01:00

Scripts! just scripts!

A collection of utility scripts in various languages (Deno/TypeScript, Python), managed with Nix Flakes for easy installation and execution.

Installation

The recommended way to use these scripts is via Nix Flakes and nix profile. This adds them to your PATH automatically.

# Clone the repo (if you want to install from local source)
git clone https://github.com/JulianNymark/scripts.git
cd scripts

# Install all scripts at once
nix profile add .

# Or install specific scripts by their alias
nix profile add .#nxs
nix profile add .#yttranscript

Once installed, you can run the scripts using their short aliases: nxs, tdc, img2gbar, dyp, yttranscript, imr, ffr, ffc.

Available Aliases

Alias Full Name Description
nxs nix-search-formatter Formats nix search output to be more readable.
tdc thumbnailify_cwd Generates thumbnails for images and videos in CWD.
img2gbar image_to_uint16_array_4bpc_GBAR Converts images to 16-bit 4bpc GBAR arrays (for C++).
dyp download_youtube_playlist Downloads audio from a YouTube playlist using yt-dlp.
yttranscript yttranscript Fetches transcripts for YouTube videos.
imr image_resize Resizes images using Sharp.
ffr ffmpeg_resize Resizes videos using FFmpeg.
ffc ffmpeg_count_frames Counts frames in a video file quickly.

Running Without Installing

You can also run any script directly without cloning or installing:

nix run github:JulianNymark/scripts#nxs -- "search terms"

Adding New Scripts

  1. Add your script to the deno/ or python/ directory.
  2. Update flake.nix to include a new package definition in the outputs.
  3. (Optional) Keep the nix-shell shebang for standalone execution.

Nix-shell Shebang (Legacy/Standalone)

Each script still contains a nix-shell shebang, allowing it to be run as a standalone file:

./deno/nix-search-formatter.ts <search-term>

This will automatically fetch dependencies and run the script, but it won't be in your PATH unless you manually symlink it.