Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:31:11 +0000 (03:31 +0000)]
style(unitproc):dateShort: Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:28:14 +0000 (03:28 +0000)]
style(unitproc):dateTimeShort:Change VAR_NAMES to VarNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:24:18 +0000 (03:24 +0000)]
style(unitproc):timeUntilNextHour: VAR_NAMES to VarNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:20:13 +0000 (03:20 +0000)]
chore(unitproc):timeUntilNextDay:Minor local var style
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:18:41 +0000 (03:18 +0000)]
style(unitproc):timeUntilNextDay: Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:14:06 +0000 (03:14 +0000)]
style(unitproc/bktemp-setTimeZoneEV):Replace uppercase vars
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:02:32 +0000 (03:02 +0000)]
chore(unitproc/bktemp-vbm):Minor comment about dependencies
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:01:19 +0000 (03:01 +0000)]
chore(unitproc/bktemp-vbm):Minor comment change
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:00:07 +0000 (03:00 +0000)]
feat(unitproc/bktemp-vbm):Added vbm error msg function
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:58:45 +0000 (19:58 +0000)]
feat(unitproc/bkFreqWrite):Add read timeout
Signed-off-by: Steven Baltakatei Sandoval <baltakatei@gmail.com>
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:48:59 +0000 (19:48 +0000)]
style(unitproc/bkFreqWrite):Minor comments
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:46:20 +0000 (19:46 +0000)]
chore(unitproc):bkFreqWrite:Update debug messages
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:44:18 +0000 (19:44 +0000)]
test(unitproc):bkFreqWrite:Add space for future buffer processing
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:43:08 +0000 (19:43 +0000)]
style(unitproc):bkFreqWrite:Add boilerplate and semicolons
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:41:07 +0000 (19:41 +0000)]
test(unitproc):bkFreqWrite:Rewrote script to use while read
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 17:26:45 +0000 (17:26 +0000)]
test(unitproc):bkFreqWrite: Implem. basic mapfile reading
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 17:01:22 +0000 (17:01 +0000)]
feat(unitproc):bkFreqWrite:Init script to process stdin
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:19:30 +0000 (03:19 +0000)]
fix(unitproc):timeEpochNS:Use ** for exponent
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:01:39 +0000 (03:01 +0000)]
style(unitproc):timeEpochNS:Bump ver for last style commit
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:00:53 +0000 (03:00 +0000)]
style(unitproc):timeEpochNS:Minor semicolons
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:59:17 +0000 (02:59 +0000)]
feat(unitproc):timeEpochNS:Add date-string parsing feature
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:36:39 +0000 (02:36 +0000)]
chore(unitproc):timeEpochNS:Rename timeNanosec -> timeEpochNS
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:34:11 +0000 (02:34 +0000)]
test(unitproc):dateTimeShort:Add sample test of nanoseconds
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:18:27 +0000 (02:18 +0000)]
fix(bkgpslog):timeNanosec:Make internal variables local
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:08:45 +0000 (02:08 +0000)]
fix(unitproc):timeNanosec:minor comment with version and author
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:08:06 +0000 (02:08 +0000)]
fix(unitproc):timeNanosec: minor comment
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:06:34 +0000 (02:06 +0000)]
feat(unitproc):Add timeNanosec function
Returns nanoseconds since 1970-01-01 with 'date'.
Steven Baltakatei Sandoval [Mon, 6 Jul 2020 18:03:48 +0000 (18:03 +0000)]
feat(unitproc):validateInput:Add time_element type
Steven Baltakatei Sandoval [Mon, 6 Jul 2020 17:37:11 +0000 (17:37 +0000)]
feat(unitproc):validateInput:Add integer type
Steven Baltakatei Sandoval [Sun, 5 Jul 2020 01:13:44 +0000 (01:13 +0000)]
doc(unitproc):checkAgePubkey: Added comment about stderr output
checkAgePubkey will generate stderr if the function is provided an
'age' incompatible string
Steven Baltakatei Sandoval [Sun, 5 Jul 2020 01:12:09 +0000 (01:12 +0000)]
style(unitproc):checkAgePubkey: Add sample code
Steven Baltakatei Sandoval [Sun, 5 Jul 2020 01:02:45 +0000 (01:02 +0000)]
feat(unitproc):Add checkAgePubkey function
Add checkAgePubkey: a function to check whether or not a string is
accepted by age (an encryption function).
Reference: https://github.com/FiloSottile/age/releases/tag/v1.0.0-beta2
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:44:49 +0000 (21:44 +0000)]
fix(unitproc):validateInput:Fix keytype
"bech32" should be "age_pubkey".
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:40:42 +0000 (21:40 +0000)]
feat(unitproc):validateInput:Add check for 'age' public keys
Ref: https://en.bitcoin.it/wiki/BIP_0173
Ref: https://github.com/FiloSottile/age
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:21:34 +0000 (21:21 +0000)]
style(unitproc):validateInput:minor comment
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:18:46 +0000 (21:18 +0000)]
feat(unitproc):Create function: validateInput
Currently only checks for strings that look similar to ssh public key
strings (ex: "ssh-rsa AAAAsfkjsies").
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 00:20:22 +0000 (00:20 +0000)]
fix(unitproc):appendFileTar: Use 'eval' to build cmd string
Same change as to `appendArgTar()`.
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 00:19:54 +0000 (00:19 +0000)]
style(unitproc):appendArgTar: Simplify command string eval cmd
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 00:12:48 +0000 (00:12 +0000)]
fix(unitproc):appendArgTar: Use 'eval' for command strings
Fixes problem when constructed command string contains quotes.
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 19:19:52 +0000 (19:19 +0000)]
fix(unitproc):appendArgTar:Fix sample code
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 19:15:48 +0000 (19:15 +0000)]
fix(unitproc):appendFileTar: Update comments, fix sample code
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:51:14 +0000 (18:51 +0000)]
feat(unitproc):appendFileTar: Add function
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:45:05 +0000 (18:45 +0000)]
fix(unitproc):appendArgTar:Fix minor usage comment error
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:28:57 +0000 (18:28 +0000)]
feat(unitproc):dateShort:Use arg as input date
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:25:04 +0000 (18:25 +0000)]
chore(unitproc):bktemp-dateShort:Note Version
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:19:19 +0000 (18:19 +0000)]
feat(unitproc):dateTimeShort:Update comment
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:17:13 +0000 (18:17 +0000)]
feat(unitproc):datetimeShort:Use 1st argument as input date
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 17:35:33 +0000 (17:35 +0000)]
feat(unitproc):dateTimeShort: Establish Version
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 22:11:31 +0000 (22:11 +0000)]
debug(unitprod):appendArgTar: Add/remove debug code
Commented debug yells.
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 21:53:00 +0000 (21:53 +0000)]
chore(unitproc):timeDuration:Added missing comment about exit 2
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 21:50:06 +0000 (21:50 +0000)]
style(unitproc):timeDuration:Changed variable names
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 20:10:00 +0000 (20:10 +0000)]
feat(unitproc):timeDuration:Remove unused boolean vars
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 20:01:54 +0000 (20:01 +0000)]
style(unitproc):timeUntilNextDay: lowercase returnStates; version
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:58:43 +0000 (19:58 +0000)]
style(unitproc):timeUntilNextHour lowerCaps returnState
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:48:09 +0000 (19:48 +0000)]
fix(unitproc):timeDuration: Add missing $ to var, add ver\#
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:10:55 +0000 (19:10 +0000)]
style(unitproc):checkMakeTar:minor formatting
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:09:43 +0000 (19:09 +0000)]
chore(unitproc):checkMakeTar:Add author, license
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:08:08 +0000 (19:08 +0000)]
feat(unitproc):checkMakeTar:Added more exit codes
exit code 0: tar readable
exit code 1: tar missing; created
exit code 2: tar not readable; moved; replaced
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 18:17:21 +0000 (18:17 +0000)]
feat(unitproc):Renamed checkTar to checkMakeTar, add sample code
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 17:53:03 +0000 (17:53 +0000)]
feat(unitproc):Add checkTar. Makes sure a tar exists
Added checkTar() Bash function template. It checks to see if file arg1 is a
valid tar archive. If file exists but `tar` doesn't recognize it as
valid, then rename it with a nonce and create an empty tar in its place.
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 16:28:57 +0000 (16:28 +0000)]
feat(unitproc):Created appendArgTar: appends bashvar as file to tar
Created appendArgTar function which appends a provided bash variable
to a specified tar archive using a specified temporary staging file
directory. It does not create a tar and will exit if the write
operation fails.
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 00:18:16 +0000 (00:18 +0000)]
fix(unitproc):minor comment correction to writeArg
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 00:16:47 +0000 (00:16 +0000)]
feat(unitproc):Add function writeArg for writing Bash vars to disk
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 00:16:03 +0000 (00:16 +0000)]
feat(unitproc):setTimeZoneEV: Add minor sample test
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 17:49:38 +0000 (17:49 +0000)]
chore(unitproc):setTimeZoneEV: Update depends info
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 17:43:34 +0000 (17:43 +0000)]
feat(unitproc):Add setTimeZoneEV function
Validates and sets timezone according to first argument. Otherwise
returns non-zero exit code.
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 15:43:32 +0000 (15:43 +0000)]
chore(unitproc):dateShort: minor comment change
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 03:14:12 +0000 (03:14 +0000)]
chore(unitproc):timeDuration: remove debug code
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 03:07:43 +0000 (03:07 +0000)]
feat(unitprod):Created timeDuration function template
Given positive integer seconds as first argument, timeDuration outputs
a valid ISO-8601 duration string to stdout.
Given positive integer ((precision)) as second argument, timeDuration
formats the output string to carry at least ((precision)) number of
time division elements (ex: higher precision lengthens output string).
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:34:14 +0000 (11:34 +0000)]
fix(unitproc):Minor copypasta error in comments
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:22:06 +0000 (11:22 +0000)]
chore(unitproc):Minor comment change
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:18:24 +0000 (11:18 +0000)]
fix(unitproc):Fix local var decs in time-related templates
See Declare and assign separately to avoid masking return
values. https://github.com/koalaman/shellcheck/wiki/SC2155
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:13:24 +0000 (11:13 +0000)]
chore(unitproc):Simplified template timeUntilNextDay
Removed some superfluous date calculations.
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:07:26 +0000 (11:07 +0000)]
feat(unitproc):Add template dateShort
Produces current date without separators.
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:01:46 +0000 (11:01 +0000)]
feat(unitproc):Add template timeUntilNextHour
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 10:49:09 +0000 (10:49 +0000)]
chore(unitproc):Rename secondsUntilMidnight to timeUntilNextDay
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:55:42 +0000 (22:55 +0000)]
fix(bktemp):Add missing quotations around string variable.
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:54:31 +0000 (22:54 +0000)]
fix(bktemplate):minor arg quotation
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:52:27 +0000 (22:52 +0000)]
fix(bktemplate):Use "$*" instead of "$@" in error messages
Reference: Argument mixes string and array. Use * or separate
argument. https://github.com/koalaman/shellcheck/wiki/SC2145
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:48:39 +0000 (22:48 +0000)]
fix(bktemplate):Fix vbm func. Use "$*" instead of "$@" for errmsg
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:45:31 +0000 (22:45 +0000)]
fix(bktemplate):Fix error in vbm conditional
Reference: Numerical -eq does not dereference in [..]. Expand or use
string operator. https://github.com/koalaman/shellcheck/wiki/SC2170
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 20:30:50 +0000 (20:30 +0000)]
feat(unitproc):Add error codes to secondsUntilMidnight
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 19:50:53 +0000 (19:50 +0000)]
chore(unitproc):Add comment to dateTimeShort
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 19:48:33 +0000 (19:48 +0000)]
feat(unitproc):Add dateTimeShort to get short timestamp
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:37:17 +0000 (18:37 +0000)]
chore(unitproc):Move scripts to prvt submodule
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:31:54 +0000 (18:31 +0000)]
chore(prvt):Move user scripts into prvt submodule for processing
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:28:18 +0000 (18:28 +0000)]
feat(archive):Add baltakatei pgp signing public key
Fingerprint:
pub rsa4096/0xA0A295ABDC3469C9 2017-10-11 [C] [expires: 2022-07-08]
Key fingerprint = 3457 A265 922A 1F38 39DB 0264 A0A2 95AB DC34 69C9
uid [ultimate] Steven Sandoval <baltakatei@gmail.com>
uid [ultimate] Steven Sandoval <baltakatei@alumni.stanford.edu>
uid [ultimate] [jpeg image of size 1846]
sub rsa4096/0x6DD7D496916A1253 2018-05-16 [E] [expires: 2022-07-07]
Key fingerprint = 5E55 5FC6 1C85 871E 813B 5BCF 6DD7 D496 916A 1253
sub rsa4096/0x57DA57D9517E6F86 2018-05-16 [S] [expires: 2022-07-07]
Key fingerprint = 38F9 6437 C83A C88E 28B7 A952 57DA 57D9 517E 6F86
sub rsa4096/0x5F9D26B9A598A2D3 2018-05-16 [A] [expires: 2022-07-07]
Key fingerprint = EDCA 7EE7 D09E 7F2E 1DF6 A229 5F9D 26B9 A598 A2D3
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:26:50 +0000 (18:26 +0000)]
chore(archive):Move legacy log to archive dir
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:24:46 +0000 (18:24 +0000)]
chore(prvt):Move personal executable archive to prvt submodule
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:22:22 +0000 (18:22 +0000)]
feat(prvt):Add private submodule for private executable code
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:07:29 +0000 (18:07 +0000)]
feat(bktemp):Add secondsUntilMidnight template
Add bash template containing a function for calculating the number of
seconds until midnight.
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:44:43 +0000 (17:44 +0000)]
feat(bktemp):Add promptLoop template
Add template that prompts a user for input until a valid answer is
provided.
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:29:22 +0000 (17:29 +0000)]
chore(bktemp):Shortened desc in bktemp-checkAppFileDir
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:26:14 +0000 (17:26 +0000)]
feat(bktemp):Add checkAppFileDir template
This template is to show how to check for the existence of specified
apps, files, or directories in `if` statements and indicate which
elements were missing in error messages at the end of the script.
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:06:54 +0000 (17:06 +0000)]
feat(bktemplate):Add checkapp,checkfile functions
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:00:11 +0000 (17:00 +0000)]
chore(bktemplate):Remove date from file
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 16:59:15 +0000 (16:59 +0000)]
chore(bktemplate):Rename
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 15:17:22 +0000 (15:17 +0000)]
feat(unitproc):Add script to load dconf settings from file
Script is `bkdconfwf` (baltakatei dconf write file). Currently, the
command:
bkdconfwf gnome-terminal.conf
is currently functionally the same as:
dconf load / < gnome-terminal.conf
where `gnome-terminal.conf` is a snippet taken from:
dconf dump / > dconf_backup
formatted like:
[org/gnome/terminal/legacy/keybindings]
prev-tab='<Primary><Shift>b'
find='disabled'
move-tab-right='<Shift><Alt>f'
find-previous='disabled'
next-tab='<Primary><Shift>f'
find-next='disabled'
move-tab-left='<Shift><Alt>b'
However, because processes each <key> & <value> string individually,
future custom behavior may be programmed into the script. For example,
it may be desireable in the future to combine the following keys:
key="'['one']'"
key="'['two']'"
into:
key="'['one' 'two']'"
.
Steven Baltakatei Sandoval [Sun, 14 Jun 2020 23:08:56 +0000 (23:08 +0000)]
chore(config-shared): Remove syncthing instructions
Steven Baltakatei Sandoval [Sun, 14 Jun 2020 23:03:16 +0000 (23:03 +0000)]
chore(config-shared): Remove emacs config files
Remove `emacs` config files and instructions now that data transferred
to `yadm` repo.