Repository for various scripts I make
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
getabspath
getcleanpath
.editorconfig
README.md
binfind.bash
build-and-copy.bash
dnscrypt-proxy-multi.rb
killtree-lite.bash
killtree.bash
libfind.bash
manfind.bash
rcopy.bash
tcpdump-master.bash
uuidfstab.bash

README.md

scripts

Repository for various scripts I make.

binfind.bash

Searches for binary files based on the value of $PATH.

build-and-copy.bash

A script I use to automate building of initrd image.

dnscrypt-proxy-multi.rb

A Ruby script that runs multiple instances of dnscrypt-proxy.

It parses a CSV file and makes use of the entries found in it as target remote services when creating instances of dnscrypt-proxy. Remote services are checked for availability before an instance of dnscrypt-proxy is used to connect to them. An FQDN can also be used to check if a remote service can resolve names.

The script waits for all instances to exit before it exits. It also automaticaly stops them when it receives SIGTERM or SIGINT.

getabspath/*

Scripts that implement getabspath() for various shells. 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/*

Scripts that implement getcleanpath() for various shells. getcleanpath() is similar to getabspath() but it doesn't care about the format of its input to base on for its output. It would always produce an output similar to realpath where the path would never end in / unless it's the root directory itself.

killtree.bash

Sends signals to process trees with style.

The script also contains reusable functions for working with process trees.

libfind.bash

Finds library files by keywords or expressions in directories specified by /etc/ld.so.conf and its subfiles, or in common library directories specified in an integrated list.

manfind.bash

Searches for manual pages based on $MANPATH.

rcopy.bash

Copies files along with their dependencies to a virtual root directory. The resulting file's path is reproduced based on its source.

tcpdump-master.bash

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.

uuidfstab.bash

Converts device paths in a fstab file to UUID forms.