BK-2020-03.git
4 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

4 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).

4 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

4 years agochore(unitproc):Minor comment change
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:22:06 +0000 (11:22 +0000)]
chore(unitproc):Minor comment change

4 years agofix(unitproc):Fix local var decs in time-related templates
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

4 years agochore(unitproc):Simplified template timeUntilNextDay
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:13:24 +0000 (11:13 +0000)]
chore(unitproc):Simplified template timeUntilNextDay

Removed some superfluous date calculations.

4 years agofeat(unitproc):Add template dateShort
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:07:26 +0000 (11:07 +0000)]
feat(unitproc):Add template dateShort

Produces current date without separators.

4 years agofeat(unitproc):Add template timeUntilNextHour
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 11:01:46 +0000 (11:01 +0000)]
feat(unitproc):Add template timeUntilNextHour

4 years agochore(unitproc):Rename secondsUntilMidnight to timeUntilNextDay
Steven Baltakatei Sandoval [Mon, 29 Jun 2020 10:49:09 +0000 (10:49 +0000)]
chore(unitproc):Rename secondsUntilMidnight to timeUntilNextDay

4 years agofix(bktemp):Add missing quotations around string variable.
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:55:42 +0000 (22:55 +0000)]
fix(bktemp):Add missing quotations around string variable.

4 years agofix(bktemplate):minor arg quotation
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:54:31 +0000 (22:54 +0000)]
fix(bktemplate):minor arg quotation

4 years agofix(bktemplate):Use "$*" instead of "$@" in error messages
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

4 years agofix(bktemplate):Fix vbm func. Use "$*" instead of "$@" for errmsg
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 22:48:39 +0000 (22:48 +0000)]
fix(bktemplate):Fix vbm func. Use "$*" instead of "$@" for errmsg

4 years agofix(bktemplate):Fix error in vbm conditional
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

4 years agofeat(unitproc):Add error codes to secondsUntilMidnight
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 20:30:50 +0000 (20:30 +0000)]
feat(unitproc):Add error codes to secondsUntilMidnight

4 years agochore(unitproc):Add comment to dateTimeShort
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 19:50:53 +0000 (19:50 +0000)]
chore(unitproc):Add comment to dateTimeShort

4 years agofeat(unitproc):Add dateTimeShort to get short timestamp
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 19:48:33 +0000 (19:48 +0000)]
feat(unitproc):Add dateTimeShort to get short timestamp

4 years agochore(unitproc):Move scripts to prvt submodule 0.1.0
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:37:17 +0000 (18:37 +0000)]
chore(unitproc):Move scripts to prvt submodule

4 years agochore(prvt):Move user scripts into prvt submodule for processing
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:31:54 +0000 (18:31 +0000)]
chore(prvt):Move user scripts into prvt submodule for processing

4 years agofeat(archive):Add baltakatei pgp signing public key
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

4 years agochore(archive):Move legacy log to archive dir
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:26:50 +0000 (18:26 +0000)]
chore(archive):Move legacy log to archive dir

4 years agochore(prvt):Move personal executable archive to prvt submodule
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:24:46 +0000 (18:24 +0000)]
chore(prvt):Move personal executable archive to prvt submodule

4 years agofeat(prvt):Add private submodule for private executable code
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 18:22:22 +0000 (18:22 +0000)]
feat(prvt):Add private submodule for private executable code

4 years agofeat(bktemp):Add secondsUntilMidnight template
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.

4 years agofeat(bktemp):Add promptLoop template
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.

4 years agochore(bktemp):Shortened desc in bktemp-checkAppFileDir
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:29:22 +0000 (17:29 +0000)]
chore(bktemp):Shortened desc in bktemp-checkAppFileDir

4 years agofeat(bktemp):Add checkAppFileDir template
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.

4 years agofeat(bktemplate):Add checkapp,checkfile functions
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:06:54 +0000 (17:06 +0000)]
feat(bktemplate):Add checkapp,checkfile functions

4 years agochore(bktemplate):Remove date from file
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 17:00:11 +0000 (17:00 +0000)]
chore(bktemplate):Remove date from file

4 years agochore(bktemplate):Rename
Steven Baltakatei Sandoval [Sun, 28 Jun 2020 16:59:15 +0000 (16:59 +0000)]
chore(bktemplate):Rename

4 years agofeat(unitproc):Add script to load dconf settings from file
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']'"

.

4 years agochore(config-shared): Remove syncthing instructions
Steven Baltakatei Sandoval [Sun, 14 Jun 2020 23:08:56 +0000 (23:08 +0000)]
chore(config-shared): Remove syncthing instructions

4 years agochore(config-shared): Remove emacs config files
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.

4 years agoMerge branch 'feature/user-scripts/BK-2020-03' into develop
Steven Baltakatei Sandoval [Thu, 4 Jun 2020 02:08:41 +0000 (02:08 +0000)]
Merge branch 'feature/user-scripts/BK-2020-03' into develop

4 years agofeature(user) Add legacy user scripts
Steven Baltakatei Sandoval [Thu, 4 Jun 2020 02:06:35 +0000 (02:06 +0000)]
feature(user) Add legacy user scripts

Add the following legacy user scripts:

- `bkcc`: A Creative Commons HTML tag generator

- `bkcryptomator`: A script to start Cryptomator from an arbitrarily
  set path.

4 years agofeature(unitproc) Add legacy unit process scripts
Steven Baltakatei Sandoval [Thu, 4 Jun 2020 02:04:22 +0000 (02:04 +0000)]
feature(unitproc) Add legacy unit process scripts

Add legacy bash scripts that fall under the "unit process" criteria
for the `unitproc` directory.

4 years agofeature(archive) Add legacy personal executable repo
Steven Baltakatei Sandoval [Thu, 4 Jun 2020 01:46:17 +0000 (01:46 +0000)]
feature(archive) Add legacy personal executable repo

Add a `git` bundle containing the legacy personal executable
repository stored in `~/Sync/baltakatei_bin` as of 2020-06-04. The
bundle may be extracted via:

    $ git clone 20200604T0140Z..baltakatei_bin.bundle

4 years agofeature(user) Add legacy user scripts
Steven Baltakatei Sandoval [Thu, 4 Jun 2020 01:42:33 +0000 (01:42 +0000)]
feature(user) Add legacy user scripts

Add legacy user scripts from the existing `~/Sync/baltakatei_bin`
repository.

4 years agofeat(doc): Describe syncthing config steps
Steven Baltakatei Sandoval [Mon, 27 Apr 2020 17:59:38 +0000 (17:59 +0000)]
feat(doc): Describe syncthing config steps

Add instructions for how to configure syncthing via webUI and/or ssh
tunnel if necessary. Specific instructions include:

1. How to connect via web browser
2. How to connect via SSH Tunnel
3. How to obtain a Device ID
4. How to add a Remote Device
5. How to create a Shared Folder

4 years agofeat(doc): Add systemd user service messages
baltakatei [Mon, 27 Apr 2020 16:59:20 +0000 (09:59 -0700)]
feat(doc): Add systemd user service messages

Add example messages returned to user after runing the
`systemctl` commands to enable and start a user service.
Commands were added from a virtual image of Debian 10
after following the instruction steps.

4 years agofeat(doc): Add example systemctl status messages
baltakatei [Mon, 27 Apr 2020 16:43:38 +0000 (09:43 -0700)]
feat(doc): Add example systemctl status messages

Add example messages returned to user after running the
`systemctl` commands to enable and start a system service.
Commands were added from a virtual image of Debian 10
after following the instruction steps.

4 years agofeat(doc): Describe auto start of syncthing
Steven Baltakatei Sandoval [Mon, 27 Apr 2020 16:30:55 +0000 (16:30 +0000)]
feat(doc): Describe auto start of syncthing

Create and add `INSTRUCTIONS.md` markdown file containing explanation
for commands needed to enable automatic startup of `syncthing` as a
system (boot) or a user (login) service in Debian 10. Link the
appropriate page at docs.syncthing.net entry for automatic startup.

4 years agoMinor update to emacs config instructions.
Steven Baltakatei Sandoval [Fri, 17 Apr 2020 02:59:15 +0000 (02:59 +0000)]
Minor update to emacs config instructions.

4 years agoMinor update to emacs config instructions.
Steven Baltakatei Sandoval [Fri, 17 Apr 2020 02:54:57 +0000 (02:54 +0000)]
Minor update to emacs config instructions.

4 years agoCreated and added emacs config instructions and files.
Steven Baltakatei Sandoval [Fri, 17 Apr 2020 02:52:05 +0000 (02:52 +0000)]
Created and added emacs config instructions and files.

4 years agoInitial commit. Created log.
Steven Baltakatei Sandoval [Thu, 16 Apr 2020 21:47:30 +0000 (21:47 +0000)]
Initial commit. Created log.