Projects, Scripts, and Various Works
A simple console-based application for playing media files using known media players like SoX, VLC, MPlayer and FFplay as backend.
A framework for shell scripts that provides functions that can be used to load, include or call module shell scripts. It supports most shells based on Bourne shell including Bash, Ksh and Zsh. A compiler can also be used.
These are the scripts that I commonly use for finding executable binaries, libraries, and manual page files.
A Ruby script that runs multiple instances of
dnscrypt-proxy with many features.
Sends signals to process trees with style.
The script also contains reusable functions for working with process trees.
A script that copies files along with their dependencies to a virtual root directory. The resulting file’s path is reproduced based on its source. It is useful for preparing binaries in a chroot environment.
The script is a tcpdump service starter and manager. It can also automatically delete files older than C days, and reduce the size of the main log file if it’s already larger than N bytes.
A script that converts device paths in a fstab file to UUID forms.
My personal overlay for Gentoo Linux’s Portage. It includes the following packages:
- dev-util/geany – A package for the Geany Text Editor with some features I made which haven’t been merged in the main tree like tab sorting and recursive opening of files. See my personal repository and patches. Also see “A set of patches for Geany”.
- dev-util/geany-plugins – A package for the Plugins of Geany.
- media-fonts/montserrat – A package for Montserrat font.
- media-sound/playshell – A package for PlayShell.
- net-dns/dnscrypt-proxy-multi – A package for dnscrypt-proxy-multi. It supports easy chroot setup for OpenRC. See “Setting up multiple instances of dnscrypt-proxy with dnscrypt-proxy-multi”.
- net-dns/dnscrypt-proxy – A package for dnscrypt-proxy.
- net-misc/tor – A package for Tor that I heavily customized to have an out-of-the-box support for running Tor service (OpenRC) in a chroot environment. It can make use of jchroot – a tool I favor for running executables in a chroot environment.
- net-p2p/rtorrent – A package for rTorrent with chroot support using jchroot.
- sys-apps/binfind – A package for binfind.
- sys-apps/jchroot – A package for jchroot.
- sys-apps/libfind – A package for libfind.
- sys-apps/manfind – A package for manfind.
- sys-apps/rcopy – A package for rcopy.
The overlay can be installed locally through layman (
layman -a konsolebox), or by adding a custom configuration file to
getabspath is a function for shell scripts that’s intended to get the strict absolute form of a path (strict in a sense that the resulting path would remain consistent even if another item is appended unto it), without relying on an external command if possible.
getcleanpath is similar to
getabspath but it doesn’t rely on the format of its input path to produce the output path. The output path is like the output of of
realpath. It would never end in
/ unless it’s the root directory itself.
The files in the repository contain functions that would work for many types of shells.