BK-2020-03.git
3 years agofeat(TODO.org):Add TODO list 0.3.0
Steven Baltakatei Sandoval [Thu, 14 Jan 2021 00:00:36 +0000 (00:00 +0000)]
feat(TODO.org):Add TODO list

3 years agofeat(sysutils):Add sysutils and some dir renaming script
Steven Baltakatei Sandoval [Wed, 13 Jan 2021 22:52:25 +0000 (22:52 +0000)]
feat(sysutils):Add sysutils and some dir renaming script

3 years agodoc(README.org):Add README and ABOUT files
Steven Baltakatei Sandoval [Wed, 13 Jan 2021 22:52:04 +0000 (22:52 +0000)]
doc(README.org):Add README and ABOUT files

3 years agoedit(unitproc:bkmvln):Customize
Steven Baltakatei Sandoval [Wed, 13 Jan 2021 22:51:33 +0000 (22:51 +0000)]
edit(unitproc:bkmvln):Customize

3 years agoadd(unitproc:bkmvln):Import symbolic link move script
Steven Baltakatei Sandoval [Tue, 12 Jan 2021 02:52:16 +0000 (18:52 -0800)]
add(unitproc:bkmvln):Import symbolic link move script

https://github.com/tpo/little_shell_scripts

3 years agofix(bkdstcountdown):Fix error when script run after last discont
Steven Baltakatei Sandoval [Thu, 31 Dec 2020 21:13:00 +0000 (21:13 +0000)]
fix(bkdstcountdown):Fix error when script run after last discont

Script was giving erroneous output if run during time period after a
year's last timezone discontinuity (e.g. PDT>PST in November in
America/Los_Angeles) and before the next year starts.

3 years agofeat(unitproc):Add elisp function def for reversing text.
Steven Baltakatei Sandoval [Tue, 17 Nov 2020 02:17:42 +0000 (02:17 +0000)]
feat(unitproc):Add elisp function def for reversing text.

See: https://emacs.stackexchange.com/a/38159

new file:   unitproc/elisp/my-reverse-region.el

3 years agofeat(unitproc):Add py function to expand/reduce numeric lists
Steven Baltakatei Sandoval [Wed, 11 Nov 2020 22:27:19 +0000 (22:27 +0000)]
feat(unitproc):Add py function to expand/reduce numeric lists

 Changes to be committed:
modified:   unitproc/python/bktemp-subsetExpandReduce.py

3 years agoAdd python function to expand/reduce lists
Steven Baltakatei Sandoval [Wed, 11 Nov 2020 19:57:19 +0000 (19:57 +0000)]
Add python function to expand/reduce lists

3 years agofeat(unitproc):Add bkipas (IPA pronunciation tool)
Steven Baltakatei Sandoval [Tue, 11 Aug 2020 20:45:00 +0000 (20:45 +0000)]
feat(unitproc):Add bkipas (IPA pronunciation tool)

Add bkipas, a bash script that takes IPA (international phonetic
alphabet) strings as input and outputs an audio pronunciation.

`bkipas` does so by converting the IPA encoding into one understood by
`espeak `(a Debian package). By default, `espeak` attempts to play the
pronunciation on the local computer's audio speakers. An option exists
in `bkipas` to instead output the audio data in WAV format to
`oggenc` (a Debian package) in order to write an Ogg Vorbis file.

3 years agofix(unitproc):timeDuration():Fix edge case of 0 second duration
Steven Baltakatei Sandoval [Tue, 14 Jul 2020 03:21:49 +0000 (03:21 +0000)]
fix(unitproc):timeDuration():Fix edge case of 0 second duration

Script would output "P" instead of "PT0S" if "0" were provided as a
duration argument.

3 years agodoc(unitproc):timeDuration:Add TODO item
Steven Baltakatei Sandoval [Tue, 14 Jul 2020 03:13:45 +0000 (03:13 +0000)]
doc(unitproc):timeDuration:Add TODO item

bug: "P" instead of "P0S".

3 years agofeat(unitproc):vbm: Add script name to verbose error message
Steven Baltakatei Sandoval [Sat, 11 Jul 2020 09:27:02 +0000 (09:27 +0000)]
feat(unitproc):vbm: Add script name to verbose error message

3 years agostyle(unitproc):setTimeZoneEV: semicolons, version numbers
Steven Baltakatei Sandoval [Sat, 11 Jul 2020 01:08:43 +0000 (01:08 +0000)]
style(unitproc):setTimeZoneEV: semicolons, version numbers

3 years agochore(unitproc):appendFileTar:Minor comment
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 20:33:04 +0000 (20:33 +0000)]
chore(unitproc):appendFileTar:Minor comment

3 years agofeat(unitproc):appendFileTar:Simplified to use only one process cmd
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 20:30:11 +0000 (20:30 +0000)]
feat(unitproc):appendFileTar:Simplified to use only one process cmd

Instead of specifying a finite number of process command arguments or
attempting to use an array to specify dynamic numbers of process
command arguments, instead, accept only a single command string
argument. If desired, multiple process command strings can be
concatenated before the combined string is provided as a single
argument to appendFileTar().

3 years agochore(unitproc):dateShort:Add version, semicolons
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 19:17:54 +0000 (19:17 +0000)]
chore(unitproc):dateShort:Add version, semicolons

3 years agostyle(unitproc):checkAppFileDir: Add version to depends; rm debug
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 17:23:36 +0000 (17:23 +0000)]
style(unitproc):checkAppFileDir: Add version to depends; rm debug

3 years agochore(unitproc):vbm:Add version numbers for dependencies
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 17:15:25 +0000 (17:15 +0000)]
chore(unitproc):vbm:Add version numbers for dependencies

3 years agochore(unitproc):setTimeZoneEV:Add version numbers for dependencies
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 17:12:21 +0000 (17:12 +0000)]
chore(unitproc):setTimeZoneEV:Add version numbers for dependencies

3 years agoMerge branch 'feature/freqWrite/BK-2020-03' into develop
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 05:45:29 +0000 (05:45 +0000)]
Merge branch 'feature/freqWrite/BK-2020-03' into develop

3 years agostyle(unitproc):timeEpochNS():VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 04:29:14 +0000 (04:29 +0000)]
style(unitproc):timeEpochNS():VAR_NAMES to varNames

3 years agostyle(unitproc):validateInput():VAR_NAME to varName
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 04:23:10 +0000 (04:23 +0000)]
style(unitproc):validateInput():VAR_NAME to varName

3 years agostyle(unitproc):appendFileTar():VAR_NAME to varName
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 04:18:17 +0000 (04:18 +0000)]
style(unitproc):appendFileTar():VAR_NAME to varName

3 years agostyle(unitproc):appendArgTar(): cat instead of tee /dev/null
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 04:10:34 +0000 (04:10 +0000)]
style(unitproc):appendArgTar(): cat instead of tee /dev/null

3 years agostyle(unitproc):appendArgTar(): VAR_NAME to varName; local vars
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 04:08:39 +0000 (04:08 +0000)]
style(unitproc):appendArgTar(): VAR_NAME to varName; local vars

3 years agostyle(unitproc):checkMakeTar(): Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:55:19 +0000 (03:55 +0000)]
style(unitproc):checkMakeTar(): Change VAR_NAMES to varNames

3 years agofeat(unitproc):checkAppFileDir:Add displayMissing(), version nums
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:47:48 +0000 (03:47 +0000)]
feat(unitproc):checkAppFileDir:Add displayMissing(), version nums

3 years agochore(unitproc):timeDuration:Update depends info
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:39:21 +0000 (03:39 +0000)]
chore(unitproc):timeDuration:Update depends info

3 years agostyle(unitproc):timeDuration:Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:38:30 +0000 (03:38 +0000)]
style(unitproc):timeDuration:Change VAR_NAMES to varNames

3 years agostyle(unitproc):dateShort: Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:31:11 +0000 (03:31 +0000)]
style(unitproc):dateShort: Change VAR_NAMES to varNames

3 years agostyle(unitproc):dateTimeShort: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

3 years agostyle(unitproc):timeUntilNextHour: 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

3 years agochore(unitproc):timeUntilNextDay:Minor local var style
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:20:13 +0000 (03:20 +0000)]
chore(unitproc):timeUntilNextDay:Minor local var style

3 years agostyle(unitproc):timeUntilNextDay: Change VAR_NAMES to varNames
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:18:41 +0000 (03:18 +0000)]
style(unitproc):timeUntilNextDay: Change VAR_NAMES to varNames

3 years agostyle(unitproc/bktemp-setTimeZoneEV):Replace uppercase vars
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:14:06 +0000 (03:14 +0000)]
style(unitproc/bktemp-setTimeZoneEV):Replace uppercase vars

3 years agochore(unitproc/bktemp-vbm):Minor comment about dependencies
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:02:32 +0000 (03:02 +0000)]
chore(unitproc/bktemp-vbm):Minor comment about dependencies

3 years agochore(unitproc/bktemp-vbm):Minor comment change
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:01:19 +0000 (03:01 +0000)]
chore(unitproc/bktemp-vbm):Minor comment change

3 years agofeat(unitproc/bktemp-vbm):Added vbm error msg function
Steven Baltakatei Sandoval [Fri, 10 Jul 2020 03:00:07 +0000 (03:00 +0000)]
feat(unitproc/bktemp-vbm):Added vbm error msg function

3 years agofeat(unitproc/bkFreqWrite):Add read timeout
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>
3 years agostyle(unitproc/bkFreqWrite):Minor comments
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:48:59 +0000 (19:48 +0000)]
style(unitproc/bkFreqWrite):Minor comments

3 years agochore(unitproc):bkFreqWrite:Update debug messages
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:46:20 +0000 (19:46 +0000)]
chore(unitproc):bkFreqWrite:Update debug messages

3 years agotest(unitproc):bkFreqWrite:Add space for future buffer processing
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:44:18 +0000 (19:44 +0000)]
test(unitproc):bkFreqWrite:Add space for future buffer processing

3 years agostyle(unitproc):bkFreqWrite:Add boilerplate and semicolons
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:43:08 +0000 (19:43 +0000)]
style(unitproc):bkFreqWrite:Add boilerplate and semicolons

3 years agotest(unitproc):bkFreqWrite:Rewrote script to use while read
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 19:41:07 +0000 (19:41 +0000)]
test(unitproc):bkFreqWrite:Rewrote script to use while read

3 years agotest(unitproc):bkFreqWrite: Implem. basic mapfile reading
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 17:26:45 +0000 (17:26 +0000)]
test(unitproc):bkFreqWrite: Implem. basic mapfile reading

3 years agofeat(unitproc):bkFreqWrite:Init script to process stdin
Steven Baltakatei Sandoval [Thu, 9 Jul 2020 17:01:22 +0000 (17:01 +0000)]
feat(unitproc):bkFreqWrite:Init script to process stdin

3 years agofix(unitproc):timeEpochNS:Use ** for exponent
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:19:30 +0000 (03:19 +0000)]
fix(unitproc):timeEpochNS:Use ** for exponent

3 years agostyle(unitproc):timeEpochNS:Bump ver for last style commit
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:01:39 +0000 (03:01 +0000)]
style(unitproc):timeEpochNS:Bump ver for last style commit

3 years agostyle(unitproc):timeEpochNS:Minor semicolons
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 03:00:53 +0000 (03:00 +0000)]
style(unitproc):timeEpochNS:Minor semicolons

3 years agofeat(unitproc):timeEpochNS:Add date-string parsing feature
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:59:17 +0000 (02:59 +0000)]
feat(unitproc):timeEpochNS:Add date-string parsing feature

3 years agochore(unitproc):timeEpochNS:Rename timeNanosec -> timeEpochNS
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:36:39 +0000 (02:36 +0000)]
chore(unitproc):timeEpochNS:Rename timeNanosec -> timeEpochNS

3 years agotest(unitproc):dateTimeShort:Add sample test of nanoseconds
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:34:11 +0000 (02:34 +0000)]
test(unitproc):dateTimeShort:Add sample test of nanoseconds

3 years agofix(bkgpslog):timeNanosec:Make internal variables local
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:18:27 +0000 (02:18 +0000)]
fix(bkgpslog):timeNanosec:Make internal variables local

3 years agofix(unitproc):timeNanosec:minor comment with version and author
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:08:45 +0000 (02:08 +0000)]
fix(unitproc):timeNanosec:minor comment with version and author

3 years agofix(unitproc):timeNanosec: minor comment
Steven Baltakatei Sandoval [Tue, 7 Jul 2020 02:08:06 +0000 (02:08 +0000)]
fix(unitproc):timeNanosec: minor comment

3 years agofeat(unitproc):Add timeNanosec function
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'.

3 years agofeat(unitproc):validateInput:Add time_element type
Steven Baltakatei Sandoval [Mon, 6 Jul 2020 18:03:48 +0000 (18:03 +0000)]
feat(unitproc):validateInput:Add time_element type

3 years agofeat(unitproc):validateInput:Add integer type
Steven Baltakatei Sandoval [Mon, 6 Jul 2020 17:37:11 +0000 (17:37 +0000)]
feat(unitproc):validateInput:Add integer type

3 years agodoc(unitproc):checkAgePubkey: Added comment about stderr output
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

3 years agostyle(unitproc):checkAgePubkey: Add sample code
Steven Baltakatei Sandoval [Sun, 5 Jul 2020 01:12:09 +0000 (01:12 +0000)]
style(unitproc):checkAgePubkey: Add sample code

3 years agofeat(unitproc):Add checkAgePubkey function
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

3 years agofix(unitproc):validateInput:Fix keytype
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:44:49 +0000 (21:44 +0000)]
fix(unitproc):validateInput:Fix keytype

"bech32" should be "age_pubkey".

3 years agofeat(unitproc):validateInput:Add check for 'age' public keys
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

3 years agostyle(unitproc):validateInput:minor comment
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 21:21:34 +0000 (21:21 +0000)]
style(unitproc):validateInput:minor comment

3 years agofeat(unitproc):Create function: validateInput
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").

3 years agofix(unitproc):appendFileTar: Use 'eval' to build cmd string
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()`.

3 years agostyle(unitproc):appendArgTar: Simplify command string eval cmd
Steven Baltakatei Sandoval [Sat, 4 Jul 2020 00:19:54 +0000 (00:19 +0000)]
style(unitproc):appendArgTar: Simplify command string eval cmd

3 years agofix(unitproc):appendArgTar: Use 'eval' for command strings
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.

3 years agofix(unitproc):appendArgTar:Fix sample code
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 19:19:52 +0000 (19:19 +0000)]
fix(unitproc):appendArgTar:Fix sample code

3 years agofix(unitproc):appendFileTar: Update comments, 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

3 years agofeat(unitproc):appendFileTar: Add function
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:51:14 +0000 (18:51 +0000)]
feat(unitproc):appendFileTar: Add function

3 years agofix(unitproc):appendArgTar:Fix minor usage comment error
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:45:05 +0000 (18:45 +0000)]
fix(unitproc):appendArgTar:Fix minor usage comment error

3 years agofeat(unitproc):dateShort:Use arg as input date
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:28:57 +0000 (18:28 +0000)]
feat(unitproc):dateShort:Use arg as input date

3 years agochore(unitproc):bktemp-dateShort:Note Version
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:25:04 +0000 (18:25 +0000)]
chore(unitproc):bktemp-dateShort:Note Version

3 years agofeat(unitproc):dateTimeShort:Update comment
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:19:19 +0000 (18:19 +0000)]
feat(unitproc):dateTimeShort:Update comment

3 years agofeat(unitproc):datetimeShort:Use 1st argument as input date
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 18:17:13 +0000 (18:17 +0000)]
feat(unitproc):datetimeShort:Use 1st argument as input date

3 years agofeat(unitproc):dateTimeShort: Establish Version
Steven Baltakatei Sandoval [Fri, 3 Jul 2020 17:35:33 +0000 (17:35 +0000)]
feat(unitproc):dateTimeShort: Establish Version

3 years agodebug(unitprod):appendArgTar: Add/remove debug code 0.2.0
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 22:11:31 +0000 (22:11 +0000)]
debug(unitprod):appendArgTar: Add/remove debug code

Commented debug yells.

3 years agochore(unitproc):timeDuration:Added missing comment about exit 2
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 21:53:00 +0000 (21:53 +0000)]
chore(unitproc):timeDuration:Added missing comment about exit 2

3 years agostyle(unitproc):timeDuration:Changed variable names
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 21:50:06 +0000 (21:50 +0000)]
style(unitproc):timeDuration:Changed variable names

3 years agofeat(unitproc):timeDuration:Remove unused boolean vars
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 20:10:00 +0000 (20:10 +0000)]
feat(unitproc):timeDuration:Remove unused boolean vars

3 years agostyle(unitproc):timeUntilNextDay: lowercase returnStates; version
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 20:01:54 +0000 (20:01 +0000)]
style(unitproc):timeUntilNextDay: lowercase returnStates; version

3 years agostyle(unitproc):timeUntilNextHour lowerCaps returnState
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:58:43 +0000 (19:58 +0000)]
style(unitproc):timeUntilNextHour lowerCaps returnState

3 years agofix(unitproc):timeDuration: Add missing $ to var, add ver\#
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:48:09 +0000 (19:48 +0000)]
fix(unitproc):timeDuration: Add missing $ to var, add ver\#

3 years agostyle(unitproc):checkMakeTar:minor formatting
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:10:55 +0000 (19:10 +0000)]
style(unitproc):checkMakeTar:minor formatting

3 years agochore(unitproc):checkMakeTar:Add author, license
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 19:09:43 +0000 (19:09 +0000)]
chore(unitproc):checkMakeTar:Add author, license

3 years agofeat(unitproc):checkMakeTar:Added more exit codes
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

3 years agofeat(unitproc):Renamed checkTar to checkMakeTar, add sample code
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 18:17:21 +0000 (18:17 +0000)]
feat(unitproc):Renamed checkTar to checkMakeTar, add sample code

3 years agofeat(unitproc):Add checkTar. Makes sure a tar exists
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.

3 years agofeat(unitproc):Created appendArgTar: appends bashvar as file to tar
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.

3 years agofix(unitproc):minor comment correction to writeArg
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 00:18:16 +0000 (00:18 +0000)]
fix(unitproc):minor comment correction to writeArg

3 years agofeat(unitproc):Add function writeArg for writing Bash vars to disk
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

3 years agofeat(unitproc):setTimeZoneEV: Add minor sample test
Steven Baltakatei Sandoval [Thu, 2 Jul 2020 00:16:03 +0000 (00:16 +0000)]
feat(unitproc):setTimeZoneEV: Add minor sample test

3 years agochore(unitproc):setTimeZoneEV: Update depends info
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 17:49:38 +0000 (17:49 +0000)]
chore(unitproc):setTimeZoneEV: Update depends info

3 years agofeat(unitproc):Add setTimeZoneEV function
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.

3 years agochore(unitproc):dateShort: minor comment change
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 15:43:32 +0000 (15:43 +0000)]
chore(unitproc):dateShort: minor comment change

3 years agochore(unitproc):timeDuration: remove debug code
Steven Baltakatei Sandoval [Wed, 1 Jul 2020 03:14:12 +0000 (03:14 +0000)]
chore(unitproc):timeDuration: remove debug code

3 years agofeat(unitprod):Created timeDuration function template
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).

3 years agofix(unitproc):Minor copypasta error in comments
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:34:14 +0000 (11:34 +0000)]
fix(unitproc):Minor copypasta error in comments