An assortment of scripts.
  • Ruby 54.4%
  • Shell 36%
  • Makefile 9.6%
2022-04-15 23:48:01 +10:00
bin Ruby smoke tests 2022-04-15 23:48:01 +10:00
doc Integrate curl-resolve & rename with prefix 2022-04-15 23:00:32 +10:00
examples Document with scdoc and pandoc 2022-04-10 19:31:16 +10:00
test Ruby smoke tests 2022-04-15 23:48:01 +10:00
.gitignore Add optional Gemfile to manage Ruby dependencies 2022-02-09 11:59:43 +11:00
.rspec Ruby smoke tests 2022-04-15 23:48:01 +10:00
.rubocop.yml Rename scripts with prefix for portability 2022-04-10 18:31:27 +10:00
Gemfile Ruby smoke tests 2022-04-15 23:48:01 +10:00
LICENSE Integrate curl-resolve & rename with prefix 2022-04-15 23:00:32 +10:00
Makefile Ruby smoke tests 2022-04-15 23:48:01 +10:00
README.md Integrate curl-resolve & rename with prefix 2022-04-15 23:00:32 +10:00

Scripts

An assortment of scripts, written in Ruby and Bash.

Scripts are documented in the doc directory.

Install

  • Pick & Choose: Download each script you're interested in, and save them to a directory in your $PATH. Run chmod +x script1 [script2...] to make each script executable.

  • I Want It All: Clone this repo with git, and add the full path to the bin directory to $PATH.

General-purpose scripts

These scripts should work as-is. They may have optional dependencies to provide extra functionality.

ljc-asc2bin

Basic binary encoder. Reads from standard input and converts it to a string of 0s and 1s.

(documentation | source)

ljc-bin2asc

Basic binary decoder. Reads and decodes a string of 0s and 1s from standard input.

(documentation | source)

ljc-isodate

ISO date formatter. Reads dates from command line arguments, and prints the weekdays and dates in ISO 8601 format.

(documentation | source)

Specialised scripts

These are designed for specific use cases. They may have dependencies, which are documented below.

ljc-cue2tracklist

Naive cue file parser. Reads a cue file from standard input, and prints a plain text tracklist. Made for extracting tracklists from Rekordbox DJ recordings.

(documentation | source)

ljc-curl-resolve

Make a HTTP request without DNS. This is a wrapper for curl designed for one use case: testing that a web server is configured correctly before setting up DNS.

(documentation | source)

ljc-dither-wallpaper

Low-res wallpaper creator. Reads images from a directory and applies a 16-color dither effect. Requires ImageMagick.

(documentation | source)

License

MIT License

Copyright (c) 2019–2022 Liam Cooke

Source

The source code is available on Codeberg and GitHub.