BK-2020-03: Baltakatei Executables Development
From Reboil
(Redirected from BK-2020-03)
BK-2020-03: Baltakatei Executables Development is the version control of Baltakatei's shell utilities and other personal executables.
Stats
- Created: 2020-04-16
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 680 000 000 bytes of music from~/Musicinto~/tmp/music-sample)
 
- Usage: 
- bkmml
- Create symlinks to audio files based on find and/or grep search patterns. Created 2024-02-20.
- 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/*
 
- Usage: 
- bknpass
- Generate alphanumeric passphrase with specified bits of entropy.
- Usage: bknpass [int BITS OF ENTROPY]
- Example: bknpass 128
 
- Usage: 
- bkots
- Timestamp director[ies] with OpenTimestamps.
- Usage: bkots [options] [path]
- Example: bkots -r -j 8 ~/Pictures
 
- Usage: 
- ffmpeg_parallel_encode.sh
- Parallel encode with ffmpeg and GNU Parallel.
- Usage: ffmpeg_parallel_encode.sh [file] [segment length in seconds]
- Example: ffmpeg_parallel_encode.sh input.mp4 10
 
- Usage: 
- 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
 
- Usage: 
- randtxt.sh
- Output random text selection from a random text file within a directory.
- Usage: randtxt.sh DIR
- Example: randtxt.sh ~/Calibre\ Library
 
- Usage: 
- triml.sh
- Remove common prefixes from files.
- Usage: triml.sh [FILE] ([FILE]…)
- Example: triml.sh ./*.jpg
 
- Usage: 
- zeropad.sh
- Prepend zeroes of files in working directory that start with digits for sorting.
- Usage: zeropad.sh [str fext]
- Example: zeropad.sh ".jpg"
 
- Usage: 
unitproc
- bk_export_audio.sh
- Extracts audio from video files.
- Usage: bk_export_audio.sh [dir IN] ([dir OUT])
 
- Usage: 
- bkshuf
- Partially shuffle stdin lines by permitting some input lines to remain contiguous.
- Example: cat file | bkshuf arg1
- arg1: (int) initial lines to output
 
- Example: 
- bkt-yellDieMust
- Bash functions for debugging: yell(), die(), must()
History
- 2020-04-16: Initial commit (36fce78).
See also
External links
- bk4, reboil.com
- GitLab repository: https://gitlab.com/baltakatei/baltakatei-exdev/
- Reboil.com wiki entry
References
Footnotes


