toyotacorolla

vroom
git clone https://git.davidvoz.net/toyotacorolla.git
index
logs
tree

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

    added comments to explain file's function and usage

diff --git a/givefilesextensions b/givefilesextensions
index 05f5cab..efa3594 100755
--- 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 index e1ba587..92bc82b 100755
--- 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 index 24a64fc..62705e5 100755
--- 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 index b0e82eb..88daa03 100755
--- 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 index 9eda9ed..2b8eaf2 100755
--- 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 old mode 100644 new mode 100755 index d2bf609..5b451a4
--- 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 index f42af2f..8482616 100755
--- 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"