BK-2020-03: Baltakatei Executables Development

From Reboil

BK-2020-03: Baltakatei Executables Development is the version control of Baltakatei's shell utilities and other personal executables.

Stats

Contents

user

bk-copy-rand-music
Copies random audio files.
Usage: bk-copy-rand-music [dir SOURCE] [dir DEST] [int DURATION] ([int BYTES])
Example: bk-copy-rand-music ~/Music /tmp/music-sample 3600 680000000 (copy up to 3600 seconds or 680000000 bytes of music from ~/Music into ~/tmp/music-sample)
bkmml
Create symlinks to audio files based on find and/or grep search patterns. Created 2024-02-20.
Usage: bkmml [str arg1] [str arg2] [str arg3]
arg1: find -iname expression
arg2: grep -Ei expression
arg3: grep -Eiv expression
bkmpv2
Wrapper for mpv that accepts directory of file paths via positional arguments or standard input lines.
Usage: bkmpv2 [dir]
Example: find ~/ -type f -name "*.flac" | bkmpv2
Example: find ~/ -type d -iname "*music*" | bkmpv2
Example: bkmpv2 ~/Music/*
bknpass
Generate alphanumeric passphrase with specified bits of entropy.
Usage: bknpass [int BITS OF ENTROPY]
Example: bknpass 128
bkots
Timestamp director[ies] with OpenTimestamps.
Usage: bkots [options] [path]
Example: bkots -r -j 8 ~/Pictures
mp3s_to_mkv.sh
Convert a directory of mp3s into a single mkv file with chapters and opus audio.
Usage: mp3s_to_mkv.sh [dir IN] [dir OUT] [str BITRATE]
Example: mp3s_to_mk3.sh ~/audiobook_mp3s/ ~/audiobook_mkv/ 48k
zeropad.sh
Prepend zeroes of files in working directory that start with digits for sorting.
Usage: zeropad.sh [str fext]
Example: zeropad.sh ".jpg"

unitproc

bk_export_audio.sh
Extracts audio from video files.
Usage: bk_export_audio.sh [dir IN] ([dir OUT])
bkshuf
Partially shuffle stdin lines by permitting some input lines to remain contiguous.
Example: cat file | bkshuf arg1
arg1: (int) initial lines to output
bkt-yellDieMust
Bash functions for debugging: yell(), die(), must()

History

See also


External links

References


Footnotes


Comments