- Ruby 54.4%
- Shell 36%
- Makefile 9.6%
| bin | ||
| doc | ||
| examples | ||
| test | ||
| .gitignore | ||
| .rspec | ||
| .rubocop.yml | ||
| Gemfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
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. Runchmod +x script1 [script2...]to make each script executable. -
I Want It All: Clone this repo with
git, and add the full path to thebindirectory 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
Copyright (c) 2019–2022 Liam Cooke