toyotacorolla

vroom
git clone https://git.davidvoz.net/toyotacorolla.git
Log | Files | Refs

commit 0b5ea712c78581525712741d2327216dc7a0ea08
parent a5d5a0917e3d9f3d9582ba18af112cde15a8cfca
Author: David Voznyarskiy <davidv@no-reply@disroot.org>
Date:   Sun,  8 Feb 2026 12:05:01 -0800

added comments to explain file's function and usage

Diffstat:
Mgivefilesextensions | 4++++
Minertiadrift | 1+
Mmounter | 3+++
Mnote | 9+++++++++
Mrand | 14+++++++-------
Munmounter | 3+++
Mxel | 3+++
7 files changed, 30 insertions(+), 7 deletions(-)

diff --git a/givefilesextensions b/givefilesextensions @@ -1,4 +1,8 @@ #!/bin/sh +# $ givefilesextensions [DIR] +# gives the directory's files an extension if missing +# [bugs] +# - .jpeg is added to .jpg if [ "$#" -ne 1 ]; then echo "Usage $0 /path/to/dir" diff --git a/inertiadrift b/inertiadrift @@ -1,4 +1,5 @@ #!/bin/sh +# Inertia Drift??? print_chars() { printf "%${2}s" "" | tr ' ' "$1" diff --git a/mounter b/mounter @@ -1,4 +1,7 @@ #!/bin/sh +# $ mounter +# you will then be guided through +# works best with USB drives, not tested with other devices set -e diff --git a/note b/note @@ -1,5 +1,14 @@ #!/bin/sh # this is a modified version of swindlesmccoop's note program +# +# $ note [enter message here] +# this will have the message automatically added +# +# $ note -p +# will print out the notes +# +# $ note +# takes you to a nvim edit to add your note NOTES_FILE=$HOME/misc/notes diff --git a/rand b/rand @@ -1,5 +1,12 @@ #!/usr/bin/env bash +print_help() { + echo "Usage: rand [OPTION]... [LENGTH]... [FILE]..." + echo "-n, --name [INT LENGTH] [FILE] renames a file with a random name" + echo "-c, --clip [INT LENGTH] copies a random string of specified length to clipboard" + echo "-h, --help display this help message" +} + generate_string_azAZ09Symb() { local length=$1 < /dev/urandom tr -dc 'A-Za-z0-9`~!@# $%^&*()-_=+[]{}|;:,.<>?/ ' | head -c "$length" @@ -10,13 +17,6 @@ generate_string_azAZ09() { < /dev/urandom tr -dc 'A-Za-z0-9' | head -c "$length" } -print_help() { - echo "Usage: rand [OPTION]... [LENGTH]... [FILE]..." - echo "-n, --name [INT LENGTH] [FILE] renames a file with a random name" - echo "-c, --clip [INT LENGTH] copies a random string of specified length to clipboard" - echo "-h, --help display this help message" -} - clip() { echo "$(generate_string_azAZ09Symb)" } diff --git a/unmounter b/unmounter @@ -1,4 +1,7 @@ #!/bin/sh +# $ ummounter +# you will then be guided through the rest of the steps +# works best with USB drives, not tested with other devices set -e diff --git a/xel b/xel @@ -1,4 +1,7 @@ #!/bin/sh +# $ xel [LaTeX file] +# compiles and removes garbage files you might not want + filename="${1%.tex}" xelatex "${filename}.tex"