From da146d6906dac747b7f8bf90e903fc020919d241 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 7 Apr 2021 15:00:26 -0500 Subject: [PATCH 01/41] Added first videos page and first script --- if-i-was-wrong-click-here.wiki | 7 +++++++ index.wiki | 1 + videos.wiki | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 if-i-was-wrong-click-here.wiki create mode 100644 videos.wiki diff --git a/if-i-was-wrong-click-here.wiki b/if-i-was-wrong-click-here.wiki new file mode 100644 index 0000000..2743b1c --- /dev/null +++ b/if-i-was-wrong-click-here.wiki @@ -0,0 +1,7 @@ + = Criticism Required = + + == Notes == + + + The billionaire wants to explain to us that what might look like the steady hoarding of wealth and a feudalistic imbalance of power is, in fact, the product of defensible moral choices and a fair system. As Max Weber noted, “the fortunate is seldom satisfied with the fact of being fortunate” but wants to know that “he has a right to his good fortune,” and that it is “legitimate fortune.” +https://www.currentaffairs.org/2021/01/how-billionaires-see-themselves diff --git a/index.wiki b/index.wiki index 16485c8..2ec74a3 100644 --- a/index.wiki +++ b/index.wiki @@ -6,6 +6,7 @@ Half brain dump, half documentation practice. * [[Vimwiki]] -- This very wiki, and how it's hosted * [[Cgit]] -- Configuration and hosting of https://git.thurstylark.com/ +* [[videos|Videos]] -- Scripts and notes ===Configuration/Dotfiles=== diff --git a/videos.wiki b/videos.wiki new file mode 100644 index 0000000..c6df4b1 --- /dev/null +++ b/videos.wiki @@ -0,0 +1,3 @@ += Videos = + +- [[if-i-was-wrong-click-here|If I Was Wrong About Something, Watch This]] Criticism Required From 667d4c0ae1176aee878bc7b7746156b7dbef4d14 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 16:59:41 -0500 Subject: [PATCH 02/41] Updated contact information --- contact.wiki | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/contact.wiki b/contact.wiki index a358bf3..732a03e 100644 --- a/contact.wiki +++ b/contact.wiki @@ -1,7 +1,13 @@ =Contact Info= -| Service | | -|----------------|-----------------------| -| Email | thurstylark@gmail.com | -| IRC (Freenode) | thurstylark | -| Twitter | @thurstylark | +Listed in order of reliability: + +| Email | thurstylark@gmail.com | +| Matrix | @thurstylark:thurstylark.com | +| IRC libera.chat^*^ | thurstylark | +| IRC oftc.net^*^ | thurstylark | +| Discord | Thurstylark#0472 | +| Signal | (ask for number via Matrix) | +| Twitter | @thurstylark | + +^*^: Since the formation of libera.chat, my presence on freenode.net is purely to squat on my account and nicks so they may not be misused. Please use libera.chat or oftc.net instead. From c00517dbe1609059f6b7e5e0d1a534cf4e99ca6a Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 17:05:37 -0500 Subject: [PATCH 03/41] contact.wiki: Fix footnote --- contact.wiki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contact.wiki b/contact.wiki index 732a03e..e4c265a 100644 --- a/contact.wiki +++ b/contact.wiki @@ -4,10 +4,10 @@ Listed in order of reliability: | Email | thurstylark@gmail.com | | Matrix | @thurstylark:thurstylark.com | -| IRC libera.chat^*^ | thurstylark | -| IRC oftc.net^*^ | thurstylark | +| IRC libera.chat^1^ | thurstylark | +| IRC oftc.net^1^ | thurstylark | | Discord | Thurstylark#0472 | | Signal | (ask for number via Matrix) | | Twitter | @thurstylark | -^*^: Since the formation of libera.chat, my presence on freenode.net is purely to squat on my account and nicks so they may not be misused. Please use libera.chat or oftc.net instead. +^1^: Since the formation of libera.chat, my presence on freenode.net is purely to squat on my account and nicks so they may not be misused. Please use libera.chat or oftc.net instead. From ea405a27c025c278ff4a2723717fddf53be1994c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 17:12:42 -0500 Subject: [PATCH 04/41] contact.wiki: Changed title text --- contact.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact.wiki b/contact.wiki index e4c265a..3e03469 100644 --- a/contact.wiki +++ b/contact.wiki @@ -1,4 +1,4 @@ -=Contact Info= +=How to get in touch with me= Listed in order of reliability: From d9a9d7a38121c5bc381d55409bbd31d1d58d1396 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 17:27:21 -0500 Subject: [PATCH 05/41] Move Stupid Crestron Quirks to Ramblings --- Ramblings.wiki | 5 ++++- index.wiki | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Ramblings.wiki b/Ramblings.wiki index 2d3c729..7e5d7ca 100644 --- a/Ramblings.wiki +++ b/Ramblings.wiki @@ -5,7 +5,6 @@ Sometimes I just need to write shit down. == LGBTQ+ == * [[On Labels]] - === On Gender === * [[am-i-faking-gender|Am I faking being trans?]] @@ -13,3 +12,7 @@ Sometimes I just need to write shit down. * [[experimenting-with-sexuality|Does experimenting make you any less straight?]] * [[coming-out-while-questioning|Should I come out while still questioning?]] -- Adolescence, fluidity, and communicating your truth * [[desiring-physical-affection|Do people actually desire physical affection?]] -- Asexuality, relationships, and wtf is normalcy anyways? + + +== General Technical == +* [[Stupid Crestron Quirks]] -- Crestron can be stupid. Here are some examples diff --git a/index.wiki b/index.wiki index 2ec74a3..b39c606 100644 --- a/index.wiki +++ b/index.wiki @@ -25,7 +25,6 @@ Half brain dump, half documentation practice. ===Misc.=== * [[Links Of Infamy]] -- A link dump of things I find truly amazing -* [[Stupid Crestron Quirks]] -- Crestron can be stupid. Here are some examples * [[Ramblings]] -- Non-technical musings, rants, or other such tomfoolery * [[Archive]] -- Pages that aren't of much active use, but worth keeping around From 615200446f84f67cd090ef1ab5d305634285884d Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:05:29 -0500 Subject: [PATCH 06/41] Bashrc.wiki: Updated links --- Bashrc.wiki | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 27ad912..996506d 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -4,6 +4,8 @@ Source: https://git.thurstylark.com/vcsh/bashrc.git ==Profile== +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bash_profile + Bash chooses which dotfile to source based on how it gets run. If starting from a login shell, `~/.bash_profile` will get sourced, but if there's not a command in there to source your `~/.bashrc`, you may find yourself having to `exec bash` after starting bash. This can be fixed by adding the following line to your `~/.bash_profile`: {{{class="prettyprint" @@ -30,6 +32,8 @@ The last thing of note in my `~/.bash_profile` is a warning: ==Main bashrc== +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc + Things started getting a little too expansive, so I split off relevant sections into their own files. Now all my individual utilities have their own file, making troubleshooting and adding functionality much easier. You can find info for each file and what it does in its own section on this page. ===General config=== @@ -64,7 +68,7 @@ Ordering can be done by adding numbers to the beginning of filenames. For exampl ==Prompt== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/prompt.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/12-prompt.bash I originally built my prompt using http://bashrcgenerator.com and, while it's a nice tool for visually building a prompt, it has several limitations on what you're able to create with it. But more importantly to me, it generates a rediculously long string, defines and resets color for every single character, uses both a color and bold escape sequence to use light/bright colors, mixes raw escape sequences and subshells running tput, and as a result is utterly unreadable and unmaintainable. @@ -106,7 +110,7 @@ I intentionally put everything in a function and call it immediately so I may us ==Aliases== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/alias.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/10-alias.bash Most of these are just creature comforts and fairly self-explanitory: @@ -136,6 +140,8 @@ alias screenterm='TERM=screen-256color' ==Colored man Pages== +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/colored-man-pages.bash + Some color changes in `man` are almost essential for readability for me, so here's how I achieve that: {{{class="prettyprint" @@ -158,7 +164,7 @@ This can also be done for any similar program that uses `less` as its pager. ==Get Dell Service Tag== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it. @@ -178,7 +184,7 @@ As an added bonus, the `-l` option will print the url for that product's support ==Screenshot== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/shot.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/shot.bash This function wraps `maim(1)` and `fb(1)` to simplify my most used options. It uses maim to capture either the full screen, the active window, or a mouse selection to a file, or directly to a pastebin. @@ -265,7 +271,7 @@ This probably isn't the most robust solution, but it works pretty well. Patches ==Countdown== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/countdown.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/countdown.bash Found this little function when I wanted to add functionality to `shot()`. It takes an integer as an argument, then counts down that number of seconds visually. @@ -293,7 +299,7 @@ This probably isn't the sanest or safest solution to the problem, but it gets th ==FontFind== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.bash Sometimes you just need to figure out what font provides a specific character. This function provides that solution: @@ -311,7 +317,7 @@ fontfind() { ==Vactivate== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.bash I started needing more than one python virtualenv, and I wanted easy access to my own specific file structure. Additionally, I wanted the ability to deactivate the venv like I would exit a child shell. This is the solution that I came up with: @@ -332,6 +338,6 @@ A caveat to this is that the prompt modification that venv usually applies is no ==Weechat== -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/weechat.sh +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/weechat.bash See: [[Weechat]]. From 257765cc22ffad9b228c07e75ad4cb0cca5150d7 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:13:54 -0500 Subject: [PATCH 07/41] Bashrc.wiki: Updated notes regarding prompt, and removed code --- Bashrc.wiki | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 996506d..8117d99 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -72,39 +72,9 @@ https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/12-prompt.bash I originally built my prompt using http://bashrcgenerator.com and, while it's a nice tool for visually building a prompt, it has several limitations on what you're able to create with it. But more importantly to me, it generates a rediculously long string, defines and resets color for every single character, uses both a color and bold escape sequence to use light/bright colors, mixes raw escape sequences and subshells running tput, and as a result is utterly unreadable and unmaintainable. -So, I replaced it: +So, I replaced it with my own setup that generates the needed color codes on the fly to improve readability. I intentionally put everything in a function and call it immediately so I may use local vars for the color definitions. I didn't really want to leave them around just in case. -{{{class="prettyprint" -promptsetup() { - # Color definitions for prompt - local fg_brightred='\[$(tput setaf 9)\]' - local fg_blue='\[$(tput setaf 4)\]' - local fg_magenta='\[$(tput setaf 13)\]' - local fg_cyan='\[$(tput setaf 6)\]' - local fg_brightcyan='\[$(tput setaf 14)\]' - local fg_green='\[$(tput setaf 2)\]' - local reset='\[$(tput sgr0)\]' - local hostname='\h' - local mixin - - # [hh:mm][username@hostname pwd]$ - - # Remotely, hostname is red. - [ -n "$SSH_CLIENT" ] && hostname="${fg_brightred}\h${reset}" - - # If in a python venv, add venv name in green. - [ -n "$VIRTUAL_ENV" ] && mixin=" ${fg_green}$(basename "$VIRTUAL_ENV")${reset}" - - # If in a vcsh repo env, add repo name in magenta. - [ -n "$VCSH_REPO_NAME" ] && mixin=" ${fg_magenta}$VCSH_REPO_NAME${reset}" - - PS1="${fg_blue}[\A]${fg_cyan}[${fg_brightcyan}\u${fg_cyan}@${hostname}${mixin} ${fg_cyan}\W]${reset}\$ " -} - -promptsetup -}}} - -I intentionally put everything in a function and call it immediately so I may use local vars for the color definitions. I didn't really want to leave them around just in case. +I'm not completely happy with this solution because it causes each of the tput subshells to execute each time the prompt is printed. I would like to change this to quash the extra output this causes when using `bash -x`, but I would also like to find a solution that minimizes so many subshells just for a prompt, but avoid hard-coding colors so it can be general enough to support any env in which it may be used. ---- From 8358ee29a0f6baed7148c7ec7fb7a1359188af23 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:16:03 -0500 Subject: [PATCH 08/41] Bashrc.wiki: Removed code from the Aliases section. Just read the damn source --- Bashrc.wiki | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 8117d99..f534d11 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -82,29 +82,7 @@ I'm not completely happy with this solution because it causes each of the tput s https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/10-alias.bash -Most of these are just creature comforts and fairly self-explanitory: - -{{{class="prettyprint" -### ALIASES ### - -# Colorize all `ls` output: -alias ls='ls -AF --color=auto' - -# Map "la" to `ls -la` -alias la='ls -laFh --color=auto' - -# Colorize `grep` output -alias grep='grep --color=auto' - -# Change layout of lsblk to include FSTYPE and remove MAJ:MIN, RM, and RO collumns. -alias lsblk='lsblk -o NAME,FSTYPE,SIZE,TYPE,MOUNTPOINT' - -# Always use sudo when using nmap. -alias nmap='sudo -E nmap' - -# Switch $TERM temporarily (for logging into machines that don't have tmux-256color terminfo) -alias screenterm='TERM=screen-256color' -}}} +Most of these are simple creature comforts and are commented with sufficient explanation. ---- From 231d8a5dbd2ee8b695d59de5e368d436e42c1e19 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:20:24 -0500 Subject: [PATCH 09/41] Bashrc.wiki: removed code from colored man pages section. Just read the source --- Bashrc.wiki | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index f534d11..a55d6d0 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -90,23 +90,9 @@ Most of these are simple creature comforts and are commented with sufficient exp https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/colored-man-pages.bash -Some color changes in `man` are almost essential for readability for me, so here's how I achieve that: +Some color changes in `man` are almost essential for readability for me, so I define my own. -{{{class="prettyprint" -# Enables colored Man pages: -man() { - env LESS_TERMCAP_mb=$'\E[01;31m' \ - LESS_TERMCAP_md=$'\E[01;38;5;74m' \ - LESS_TERMCAP_me=$'\E[0m' \ - LESS_TERMCAP_se=$'\E[0m' \ - LESS_TERMCAP_so=$'\E[38;5;246m' \ - LESS_TERMCAP_ue=$'\E[0m' \ - LESS_TERMCAP_us=$'\E[04;38;5;146m' \ - man "$@" -} -}}} - -This can also be done for any similar program that uses `less` as its pager. +This can be replicated for any similar program that uses `less` as its pager. ---- From e5ff970c37c349f29cafdbf28d67b482b30f7f2e Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:21:27 -0500 Subject: [PATCH 10/41] Bashrc.wiki: removed code from dmidecode section. Just read the source --- Bashrc.wiki | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index a55d6d0..a44cb09 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -102,16 +102,6 @@ https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it. -{{{class="prettyprint" -getdst() { - if [[ "$1" = "-l" ]]; then - printf "http://www.dell.com/support/home/us/en/04/product-support/servicetag/%s/configuration\n" "$(getdst)" - else - sudo dmidecode -s system-serial-number - fi -} -}}} - As an added bonus, the `-l` option will print the url for that product's support page. ---- From 2ff12a87e5d103203d11764628e5ddc7b94a5aeb Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:25:47 -0500 Subject: [PATCH 11/41] Bashrc.wiki: removed code from shot section. Just read the source --- Bashrc.wiki | 80 +---------------------------------------------------- 1 file changed, 1 insertion(+), 79 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index a44cb09..937afb6 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -110,85 +110,7 @@ As an added bonus, the `-l` option will print the url for that product's support https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/shot.bash -This function wraps `maim(1)` and `fb(1)` to simplify my most used options. It uses maim to capture either the full screen, the active window, or a mouse selection to a file, or directly to a pastebin. - -{{{class="prettyprint" -shot() { - # Usage: shot XY - local destdir="$HOME/Pictures/screenshots" - local fname - local pb="fb" - local paste msgt msgd opts - fname="shot-$(date +%F-%T).png" - - if [ -z "$1" ]; then - printf " -Usage: shot XY -X: Target -Y: Destination - -Valid Targets: -w Active Window -a All displays -s Mouse Selection - -Valid Destinations: -f Save to file (defined in function) -p Upload to a pastebin (defined in function) -" - return - fi - - # X: What to capture - case ${1:0:1} in - # Active window - w) printf "Focus target window now...\n" - opts="-i $(xdotool getactivewindow)" - msgt="active window" - ;; - # All - a) msgt="all displays" - ;; - # Mouse selection - s) opts="-s --noopengl" - msgt="mouse selection" - ;; - - *) printf "Invalid target: %s\n" "${1:0:1}" - return - ;; - esac - # Y: Where to put the result - case ${1:1:1} in - # Save to file - f) msgd="file: $destdir/$fname" - ;; - # Post to a pastebin - p) destdir=$destdir/pasted - msgd="pastebin" - paste=1;; - - *) printf "Invalid destination: %s\n" "${1:1:1}" - return - ;; - esac - - # Make sure destination directory will exist - [[ ! -d "$destdir" ]] && mkdir -p "$destdir" - local fpath="${destdir}/${fname}" - - # If target is active window, give a 5 second countdown before running maim - [[ "$msgt" = "active window" ]] && countdown 5 - - maim "$opts" "$fpath" - printf "Captured %s -> %s\n" "$msgt" "$msgd" - - # If destination is a pastebin, do the needful - [[ "$paste" ]] && $pb "$fpath" -} -}}} - -This probably isn't the most robust solution, but it works pretty well. Patches welcome. +`shot()` used to be much more complicated, but after moving to sway, I found that I couldn't be arsed to reimplement all of its former functionality. It turned out that the majority of the time, I want to select a region, and put it on stdout to be dealt with how I please. If I find that full-screen or all-screen screenshots are more useful to me in the future, I'll cross that bridge when I come to it. ---- From 6eb0f3d487fd86bef323251fc829c5b86908836c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:29:27 -0500 Subject: [PATCH 12/41] Bashrc.wiki: removed code from countdown section. Just read the source --- Bashrc.wiki | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 937afb6..035fda3 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -121,25 +121,7 @@ https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/countdown.bash Found this little function when I wanted to add functionality to `shot()`. It takes an integer as an argument, then counts down that number of seconds visually. -{{{class="prettyprint" -countdown() { - if [ -z "$1" ]; then - printf " -countdown: Count down while printing progress on the terminal - -Usage: countdown -" - fi - local secs="$1" - while [ "$secs" -gt 0 ]; do - echo -ne "$secs\033[0K\r" - sleep 1 - : $((secs--)) - done -} -}}} - -This probably isn't the sanest or safest solution to the problem, but it gets the job done. Patches welcome. +I no longer use `countdown()` from `shot()` directly, but sometimes will in some sort of pipeline in tandem with it. I found that I want that flexibility out in the open for me to use instead of packed behind a bespoke ui for little benefit. ---- From b4a0f7bf80c79dae886fa5ac2f762bccffcd1f9f Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:29:58 -0500 Subject: [PATCH 13/41] Bashrc.wiki: removed code from fontfind section. Just read the source --- Bashrc.wiki | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 035fda3..f16db9b 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -129,17 +129,7 @@ I no longer use `countdown()` from `shot()` directly, but sometimes will in some https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.bash -Sometimes you just need to figure out what font provides a specific character. This function provides that solution: - -{{{class="prettyprint" -fontfind() { - if [[ -z $1 || ${#1} -gt 1 ]]; then - printf "E: only one character accepted" - fi - local glyph=$1 - FC_DEBUG=4 pango-view -qt "$glyph" 2>&1 | awk -F \" '/family: / { m = $2 } END { print m }' -} -}}} +Sometimes you just need to figure out what font provides a specific character. This function provides that solution. ---- From 95abd74d9c26bb98d2425c63dbc55b744c7662e6 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:35:07 -0500 Subject: [PATCH 14/41] Bashrc.wiki: removed code from vactivate section. Just read the source --- Bashrc.wiki | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index f16db9b..d53663a 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -137,20 +137,9 @@ Sometimes you just need to figure out what font provides a specific character. T https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.bash -I started needing more than one python virtualenv, and I wanted easy access to my own specific file structure. Additionally, I wanted the ability to deactivate the venv like I would exit a child shell. This is the solution that I came up with: +I started needing more than one python virtualenv, and I wanted easy access to my own specific file structure. Additionally, I wanted the ability to deactivate the venv like I would exit a child shell. This is the solution that I came up with. -{{{class="prettyprint" -vactivate() { - local path=~/.venv/$1 - - if [[ ! -d $path ]]; then - python -m venv $path --prompt "venv: $1" - fi - source $path/bin/activate; bash; deactivate -} -}}} - -A caveat to this is that the prompt modification that venv usually applies is not available using this method. If a prompt modification is desired, it needs to be taken care of elsewhere. I take care of it in my prompt setup detailed [[https://wiki.thurstylark.com/Bashrc.html#Prompt|here]]. +A caveat to this is that the prompt modification that venv usually applies is not available using this method. If a prompt modification is desired, it needs to be taken care of elsewhere. I take care of it in my prompt setup detailed [[https://wiki.thurstylark.com/Bashrc.html#Bashrc-Prompt|here]]. ---- From 7464435a488b2f0fa633f08ac163f37cde37f9c1 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:39:27 -0500 Subject: [PATCH 15/41] Bashrc.wiki: Reordered sections based on relevance to daily use --- Bashrc.wiki | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index d53663a..1bf1808 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -96,16 +96,6 @@ This can be replicated for any similar program that uses `less` as its pager. ---- -==Get Dell Service Tag== - -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash - -I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it. - -As an added bonus, the `-l` option will print the url for that product's support page. - ----- - ==Screenshot== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/shot.bash @@ -125,14 +115,6 @@ I no longer use `countdown()` from `shot()` directly, but sometimes will in some ---- -==FontFind== - -https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.bash - -Sometimes you just need to figure out what font provides a specific character. This function provides that solution. - ----- - ==Vactivate== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.bash @@ -143,6 +125,24 @@ A caveat to this is that the prompt modification that venv usually applies is no ---- +==FontFind== + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.bash + +Sometimes you just need to figure out what font provides a specific character. This function provides that solution. + +---- + +==Get Dell Service Tag== + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash + +I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it. + +As an added bonus, the `-l` option will print the url for that product's support page. + +---- + ==Weechat== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/weechat.bash From 52aa21882953ea8af9e95b03e59668a1f2426764 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:44:49 -0500 Subject: [PATCH 16/41] Bashrc.wiki: Added Environment section --- Bashrc.wiki | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index 1bf1808..01d1a68 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -78,6 +78,14 @@ I'm not completely happy with this solution because it causes each of the tput s ---- +== Environment == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/11-env.bash + +Here is where I set a few environment variables that are useful in one way or another, such as `HISTCONTROL`, `EDITOR`, `LS_COLORS`, and `LIBVIRT_DEFAULT_URI`. + +---- + ==Aliases== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/10-alias.bash From c90737a69eceb66549f5ffb1d876a99835b2c77c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 18:54:34 -0500 Subject: [PATCH 17/41] Bashrc.wiki: Added Pkgfile as command-not-found section --- Bashrc.wiki | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index 01d1a68..ca47642 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -94,6 +94,14 @@ Most of these are simple creature comforts and are commented with sufficient exp ---- +== Pkgfile as `command_not_found_handle()` == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/pkgfile.bash + +This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in the `pacman` sync databases. Another mechanism should be used to keep `pkgfile`'s databases up to date. + +---- + ==Colored man Pages== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/colored-man-pages.bash From 850f3c2aac7381de9c8f1f11b23042744f388f56 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:03:14 -0500 Subject: [PATCH 18/41] Bashrc.wiki: Updated Pkgfile as command-not-found section with info for auto-updating pkgfile's databases --- Bashrc.wiki | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index ca47642..87ff0dc 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -98,7 +98,9 @@ Most of these are simple creature comforts and are commented with sufficient exp https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/pkgfile.bash -This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in the `pacman` sync databases. Another mechanism should be used to keep `pkgfile`'s databases up to date. +This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in its databases, which are derived from the same [[https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file|databases that `pacman -F` uses.]] + +To keep these databases updated, `pkgfile` ships [[https://wiki.archlinux.org/title/Pkgfile#Automatic_updates|a systemd timer]] that runs the update command daily. ---- From 77ee20dc7fe63fe6d1fd1755f12dbc13cbe4ce51 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:07:36 -0500 Subject: [PATCH 19/41] Bashrc.wiki: Added arpresolve section --- Bashrc.wiki | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index 87ff0dc..236a364 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -151,6 +151,16 @@ Sometimes you just need to figure out what font provides a specific character. T ---- +== Resolve IP Addresses to MAC Addresses with `arping` == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/arpresolve.bash + +This utility comes in handy when I just want a MAC address as a string without having to dig through `nmap` output for it. + +Unfortunately not all devices are cooperative to this method, so ymmv. + +---- + ==Get Dell Service Tag== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash From 8d30cb9d1062c5f9cee8c32afdb013f213e2c368 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:19:48 -0500 Subject: [PATCH 20/41] Bashrc.wiki: Added cmdcopy section --- Bashrc.wiki | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index 236a364..de771f7 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -133,6 +133,14 @@ I no longer use `countdown()` from `shot()` directly, but sometimes will in some ---- +== cmdcopy == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/cmdcopy.bash + +This tool runs the specified command, capturing `stdout` and `stderr`, adds the specified command to the beginning of the output, and sends the result to stdout. The output of this command should be suitable to pipe directly into a paste service such as [[http://ix.io|ix.io]] when seeking support via IRC or other text-based method. + +---- + ==Vactivate== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.bash From 5bf657c32253c4c70b8ff9d686d24a275f0515e3 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:30:38 -0500 Subject: [PATCH 21/41] Bashrc.wiki: Added fbc section --- Bashrc.wiki | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index de771f7..ab4eb71 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -141,6 +141,14 @@ This tool runs the specified command, capturing `stdout` and `stderr`, adds the ---- +== fbc == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fbc.bash + +In a similar vein to `cmdcopy()`, this tool runs the specified command, pipes `stdout` and `stderr` directly to [[https://git.server-speed.net/users/flo/fb/|`fb-client`]], and sets the specified command as the name of the paste using `-n`. + +---- + ==Vactivate== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/vactivate.bash From 84c1bc6b434a8d590c416319026b53e498d6083a Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:47:33 -0500 Subject: [PATCH 22/41] Bashrc.wiki: Added sing and note2freq section --- Bashrc.wiki | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index ab4eb71..8ac32d1 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -187,6 +187,25 @@ As an added bonus, the `-l` option will print the url for that product's support ---- +== `sing()` and `note2freq()` == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/sing.bash + +I was having trouble writing music scripts for the pcspkr because all the examples that I could find only used frequency numbers as arguments to `beep`, and it was difficult to map frequency numbers to musical note letters in the process of making my own tunes. `note2freq()` solves this issue by taking a musical note in the form of `[accidental]`, where: + +* `` is one of `A` through `G` +* `[accidental]` is one of: + * `b` for flat + * `s` for sharp + * omitted for a natural note +* `` is `1` through `7` + +`sing()` takes a list of notes in this same form along with note length in ms, uses `note2freq()` to translate each one to a frequency number and constructs a string of arguments that `beep` can use to play the entire tune in one go. + +Both of these in tandem make beep tune writing way easier. + +---- + ==Weechat== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/weechat.bash From eeea080dd9f5af1d235157f009e122ee9cfc3762 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 19:59:17 -0500 Subject: [PATCH 23/41] Bashrc.wiki: Added triumph section --- Bashrc.wiki | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Bashrc.wiki b/Bashrc.wiki index 8ac32d1..88ebf0e 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -206,6 +206,18 @@ Both of these in tandem make beep tune writing way easier. ---- +== Triumph == + +https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/triumph.bash + +This function is both an example of how `sing()` is used, as well as a tool in its own right. + +I wanted a script that played a tune after a long-running script, but play different tunes based on the exit code of the preceding command. This was my cute Portal-themed implementation of that idea. + +Proper tune selection depends on `triumph()` being able to read the exit code from the previous command. For example, for usage in a one-liner script, use something similar to `; triumph`. Avoid using `||` or `&&` in place of the `;`. + +---- + ==Weechat== https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/weechat.bash From 4eec3f669090b90bfa6fdac1833afd897804ee2c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 5 Jun 2021 22:55:43 -0500 Subject: [PATCH 24/41] Bashrc.wiki: Fixing links --- Bashrc.wiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 88ebf0e..f1ee3f3 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -98,7 +98,7 @@ Most of these are simple creature comforts and are commented with sufficient exp https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/pkgfile.bash -This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in its databases, which are derived from the same [[https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file|databases that `pacman -F` uses.]] +This sets up `bash`'s `command_not_found_handle()` functionality so that when a command cannot be found in `PATH`, it will use `pkgfile` to check for that command in its databases, which are derived from the [[https://wiki.archlinux.org/title/Pacman#Search_for_a_package_that_contains_a_specific_file|same databases]] that `pacman -F` uses. To keep these databases updated, `pkgfile` ships [[https://wiki.archlinux.org/title/Pkgfile#Automatic_updates|a systemd timer]] that runs the update command daily. @@ -145,7 +145,7 @@ This tool runs the specified command, capturing `stdout` and `stderr`, adds the https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fbc.bash -In a similar vein to `cmdcopy()`, this tool runs the specified command, pipes `stdout` and `stderr` directly to [[https://git.server-speed.net/users/flo/fb/|`fb-client`]], and sets the specified command as the name of the paste using `-n`. +In a similar vein to `cmdcopy()`, this tool runs the specified command, pipes `stdout` and `stderr` directly to [[https://git.server-speed.net/users/flo/fb/|fb-client]], and sets the specified command as the name of the paste using `-n`. ---- From ffbefaba4bedf0224d4d7db6bda11a4454ccdfcf Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 6 Jun 2021 12:26:19 -0500 Subject: [PATCH 25/41] Remove obsolete config and discussion --- Bashrc.wiki | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index f1ee3f3..8804d5e 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -21,13 +21,6 @@ case $(tty) in /dev/tty[0-9]*) esac }}} -The last thing of note in my `~/.bash_profile` is a warning: - -{{{class="prettyprint" - # Temporary fix for a systemd bug related to systemd --user timers that run on login - [[ -z "$DBUS_SESSION_BUS_ADDRESS" ]] && printf "%bWARNING: \$DBUS_SESSION_BUS_ADDRESS is unset! %b\n" "$(tput bold)$(tput setab 1)" "$(tput sgr0)" -}}} - ---- ==Main bashrc== From d718859e8e939b47c465428c32cb816ac0d98917 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 6 Jun 2021 13:04:33 -0500 Subject: [PATCH 26/41] Bashrc.wiki: update language --- Bashrc.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 8804d5e..ae19114 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -27,7 +27,7 @@ esac https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc -Things started getting a little too expansive, so I split off relevant sections into their own files. Now all my individual utilities have their own file, making troubleshooting and adding functionality much easier. You can find info for each file and what it does in its own section on this page. +Things started getting a little too expansive for a single file, so I split off relevant sections into their own files. Now all my individual utilities have their own file, making troubleshooting and adding functionality much easier. You can find info for each file and what it does in its own section on this page. ===General config=== From f4369c81971bd7b8460b4d5d95ceb2d0cfbeadcb Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 6 Jun 2021 13:06:02 -0500 Subject: [PATCH 27/41] Bashrc.wiki: update config sourcing code --- Bashrc.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index ae19114..1696971 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -50,7 +50,7 @@ shopt -s autocd This is where all the other utilities, aliases, and functions get pulled in. Anything in `~/.bashrc.d/` ending in `.sh` will get pulled in. {{{class="prettyprint" -for f in ~/.bashrc.d/*.sh; do source "$f"; done +for f in ~/.bashrc.d/*.bash; do source "$f"; done }}} This also removes the need for the local bashrc sourcing that I [[https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc?id=30c53ca7224b583ed5068038b697653810e3b94b#n45|had in this file previously]]. If that functionality is needed, simply make a new script in `~/.bashrc.d/` and don't track it with `vcsh`. From 978d1460a50e029b96f6928a57d0357bdbc2e40c Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sun, 6 Jun 2021 13:13:12 -0500 Subject: [PATCH 28/41] Bashrc.wiki: update config sourcing discussion --- Bashrc.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bashrc.wiki b/Bashrc.wiki index 1696971..5856414 100644 --- a/Bashrc.wiki +++ b/Bashrc.wiki @@ -47,7 +47,7 @@ Another cool option is actually built in to bash: If you call for a directory wi shopt -s autocd }}} -This is where all the other utilities, aliases, and functions get pulled in. Anything in `~/.bashrc.d/` ending in `.sh` will get pulled in. +This is where all the other utilities, aliases, and functions get pulled in. Anything in `~/.bashrc.d/` ending in `.bash` will get pulled in. {{{class="prettyprint" for f in ~/.bashrc.d/*.bash; do source "$f"; done From 6c9e64f604342c819413c656d90c7f793daf07a3 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 23 Jun 2021 12:37:06 -0500 Subject: [PATCH 29/41] contact.wiki: Updated contact details in light of the latest Freenode fuckery --- contact.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact.wiki b/contact.wiki index 3e03469..bcec3dd 100644 --- a/contact.wiki +++ b/contact.wiki @@ -10,4 +10,4 @@ Listed in order of reliability: | Signal | (ask for number via Matrix) | | Twitter | @thurstylark | -^1^: Since the formation of libera.chat, my presence on freenode.net is purely to squat on my account and nicks so they may not be misused. Please use libera.chat or oftc.net instead. +1: ~~Since the formation of libera.chat, my presence on freenode.net is purely to squat on my account and nicks so they may not be misused.~~ Never mind, [[https://www.reddit.com/r/irc/comments/o01tmv/freenode_wipes_old_database_and_starts_over/|Freenode decided to shit the bed even harder]], so I no longer have a presence there. Please use libera.chat or oftc.net instead. From 6dbbbf9ce7346e07f252c0b7b7794bea47dba7ca Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Thu, 8 Jul 2021 17:59:17 -0500 Subject: [PATCH 30/41] Moved formatting cheat sheet link to another page, added initial draft of Balanced and Unbalanced Audio cheat sheet --- balanced-and-unbalanced-audio.wiki | 35 ++++++++++++++++++++++++++++++ cheat-sheets.wiki | 11 ++++++++++ index.wiki | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 balanced-and-unbalanced-audio.wiki create mode 100644 cheat-sheets.wiki diff --git a/balanced-and-unbalanced-audio.wiki b/balanced-and-unbalanced-audio.wiki new file mode 100644 index 0000000..fa260d5 --- /dev/null +++ b/balanced-and-unbalanced-audio.wiki @@ -0,0 +1,35 @@ += What is Balanced or Unbalanced audio? = + +This document is meant to serve as a cursory overview of the concepts necessary to understand balanced audio, and as a reference for myself. + +If you'd like to skip the narrative, feel free to browse through the [[#References]] I used while writing this document. + + +== What is sound anyways? == + +At its most base physical level, sound is simply a vibration in some sort of physical medium. The job of the human ear is to capture these vibrations out of the air, and translate them into neurological impulses. The brain's interpretation of thes impulses is what we commonly call sound. + +A "vibration" is a mechanical phenomenon whereby oscillations occur about an equilibrium point. In the context of sound, the transmission medium is the thing that is vibrating. + + +=== Example: Human Speech === + +To illustrate how these parts fit together, let's consider an exceedingly common case: Two humans in conversation. The speaker is the source of sound, and the listener is the destination. In this case, the medium is [[https://en.wikipedia.org/wiki/Atmosphere_of_Earth|atmospheric air]], which is to say: the collection of gasses that fills all the *seemingly* empty space between objects on planet Earth. + +The speaker creates sound by squeezing the right muscles, which causes two special skin folds to be pushed together inside their throat. As the speaker pushes air out of their lungs, these folds block the path of air until the air pressure is great enough to push the folds apart, which releases a small amount of air from their lungs, causing the air pressure to drop, which allows the folds to rebound and meet again. The [[https://en.wikipedia.org/wiki/Vocal_cords#Function|Wikipedia page on vocal cords]] summarizes this better than I ever could: "In essence, sound is generated in the larynx by chopping up a steady flow of air into little puffs of sound waves." + +This stream of air pressure variations is what travels through the air from source to destination. + + + +* Equilibrium (aka: 0dB, + + +== References == + +* https://en.wikipedia.org/wiki/Sound +* https://en.wikipedia.org/wiki/Analog_signal +* https://en.wikipedia.org/wiki/Audio_signal +* https://en.wikipedia.org/wiki/Balanced_audio + + diff --git a/cheat-sheets.wiki b/cheat-sheets.wiki new file mode 100644 index 0000000..677fd2f --- /dev/null +++ b/cheat-sheets.wiki @@ -0,0 +1,11 @@ += Cheat Sheets = + + +%%== Audio == + +%%* [[balanced-and-unbalanced-audio|Balanced and Unbalanced Analog Audio]] -- Discussion of balanced audio, and how to use it with an unbalanced source or destination + + +== Syntax == + +* [[Vimwiki Formatting Cheat Sheet]] diff --git a/index.wiki b/index.wiki index b39c606..77825f7 100644 --- a/index.wiki +++ b/index.wiki @@ -20,7 +20,7 @@ Half brain dump, half documentation practice. * [[LetsEncrypt]] -- Usage of certbot, and relevant info for Apache configuration * [[Keyboard Mapping]] -- Changing keyboard mapping at the hwdb level * [[Password-Store setup]] -* [[Formatting Cheat Sheet]] +* [[cheat-sheets|Cheat Sheets]] -- One-pagers for often-repeated information ===Misc.=== From 7fb8f588baa41d950a8a17dae72fb36b0182941e Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 16 Aug 2021 17:14:40 -0500 Subject: [PATCH 31/41] Moving bashrc to new gitea instance and repo-specific wiki --- index.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.wiki b/index.wiki index 77825f7..a60c30a 100644 --- a/index.wiki +++ b/index.wiki @@ -10,7 +10,7 @@ Half brain dump, half documentation practice. ===Configuration/Dotfiles=== -* [[Bashrc]] +* [[https://thurstylark.com/gitea/thurstylark/vcsh-bashrc/wiki|Bashrc]] * [[SSH]] * [[Chrome Search Shortcuts]] From 37a5af7bfc57688cfc026a6c2788d5437aa6d25d Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 17:37:51 -0500 Subject: [PATCH 32/41] added RTFM or GTFO --- RTFM or GTFO.wiki | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 RTFM or GTFO.wiki diff --git a/RTFM or GTFO.wiki b/RTFM or GTFO.wiki new file mode 100644 index 0000000..e02669f --- /dev/null +++ b/RTFM or GTFO.wiki @@ -0,0 +1,4 @@ += RTFM or GTFO: Approachability in the Arch Linux Comunity = + + +In the Linux distro corner of the FOSS world, the [[https://wiki.archlinux.org/|Arch Linux Wiki]] has achieved near-legendary status as the best repository of 3rd party documentation on the internet, but it's also the achilles' heel of the Arch Linux Community From c7c4d10293e2e3c16108b0e83688b1d659d95f56 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 18:43:05 -0500 Subject: [PATCH 33/41] added RTFM or GTFO to the Ramblings --- Ramblings.wiki | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Ramblings.wiki b/Ramblings.wiki index 7e5d7ca..041fb87 100644 --- a/Ramblings.wiki +++ b/Ramblings.wiki @@ -1,6 +1,8 @@ = Ramblings = Sometimes I just need to write shit down. +* [[RTFM or GTFO]] -- Approachability in the Arch Linux Community + == LGBTQ+ == * [[On Labels]] From 7a81b3916aed80599a6621d01e6ed01b576a059e Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 18:43:48 -0500 Subject: [PATCH 34/41] Added Portfolio and Resume --- index.wiki | 6 +++++- portfolio.wiki | 14 ++++++++++++++ resume.wiki | 9 +++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 portfolio.wiki create mode 100644 resume.wiki diff --git a/index.wiki b/index.wiki index a60c30a..d37e0c6 100644 --- a/index.wiki +++ b/index.wiki @@ -29,4 +29,8 @@ Half brain dump, half documentation practice. * [[Archive]] -- Pages that aren't of much active use, but worth keeping around -=== [[contact|Contact Info]] === +=== About Me == + +* [[contact|Contact Info]] +* [[portfolio|Portfolio]] +* [[resume|Resume]] diff --git a/portfolio.wiki b/portfolio.wiki new file mode 100644 index 0000000..48ba7e5 --- /dev/null +++ b/portfolio.wiki @@ -0,0 +1,14 @@ += Thurstylark's Portfolio = + +== Where can I find your work? == + +* [[https://wiki.thurstylark.com|wiki.thurstylark.com]] +* [[https://git.thurstylark.com|git.thurstylark.com]] +* [[https://github.com/thurstylark|Github]] +* [[https://twitch.tv/thurstylark|Twitch]] +* [[https://www.youtube.com/channel/UCJwFowK8HKYcgD7GVYiz8jA|YouTube]] + + +== Anything Else? == + +Probably not, but I go by Thurstylark everywhere, so get to googlin'! diff --git a/resume.wiki b/resume.wiki new file mode 100644 index 0000000..2c6b07f --- /dev/null +++ b/resume.wiki @@ -0,0 +1,9 @@ += Resume 403: Forbidden = + +Hi + +Thanks for visiting, but I have decided against providing a traditional resume at this time. + +For examples of my work, feel free to take a look at my [[portfolio|Portfolio]]. Of special note is my [[https://twitch.tv/thurstylark|Twitch channel]], where you can watch me work out loud, in real-time. This will give you a better understanding of my abilities than any work history document ever could. + +If you require additional information that isn't covered in my portfolio or by the content of this site, please reach out to me using one of the methods listed on the [[contact|Contact Info]] page. From 58b600a7c82abcaf3c550af0674023e7884509f9 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 18:45:20 -0500 Subject: [PATCH 35/41] index: fixed broken header --- index.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.wiki b/index.wiki index d37e0c6..8d165e2 100644 --- a/index.wiki +++ b/index.wiki @@ -29,7 +29,7 @@ Half brain dump, half documentation practice. * [[Archive]] -- Pages that aren't of much active use, but worth keeping around -=== About Me == +=== About Me === * [[contact|Contact Info]] * [[portfolio|Portfolio]] From 7b83328ea4d3570b5e2bc3acbdde5e233696b4d4 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 18:47:39 -0500 Subject: [PATCH 36/41] resume: Adjusted phrasing --- resume.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resume.wiki b/resume.wiki index 2c6b07f..530476a 100644 --- a/resume.wiki +++ b/resume.wiki @@ -4,6 +4,6 @@ Hi Thanks for visiting, but I have decided against providing a traditional resume at this time. -For examples of my work, feel free to take a look at my [[portfolio|Portfolio]]. Of special note is my [[https://twitch.tv/thurstylark|Twitch channel]], where you can watch me work out loud, in real-time. This will give you a better understanding of my abilities than any work history document ever could. +For examples of my work, feel free to take a look at my [[portfolio|Portfolio]]. Of special note is my [[https://twitch.tv/thurstylark|Twitch channel]], where you can watch me work out loud, in real-time. These resources will do a much better job of communicating my abilities than any work history document ever could. If you require additional information that isn't covered in my portfolio or by the content of this site, please reach out to me using one of the methods listed on the [[contact|Contact Info]] page. From 5501d0f2b1d592f6eecd8614cda4487de5e9e134 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 18:53:58 -0500 Subject: [PATCH 37/41] resume: added a comma because my brain wouldn't shut up about it --- resume.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resume.wiki b/resume.wiki index 530476a..09a5f84 100644 --- a/resume.wiki +++ b/resume.wiki @@ -1,6 +1,6 @@ = Resume 403: Forbidden = -Hi +Hi, Thanks for visiting, but I have decided against providing a traditional resume at this time. From 58a35f7e37c58e9aa6245f1b706ffee8b1205147 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Mon, 13 Sep 2021 19:01:20 -0500 Subject: [PATCH 38/41] resume: adjusted phrasing --- resume.wiki | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resume.wiki b/resume.wiki index 09a5f84..465bb66 100644 --- a/resume.wiki +++ b/resume.wiki @@ -6,4 +6,4 @@ Thanks for visiting, but I have decided against providing a traditional resume a For examples of my work, feel free to take a look at my [[portfolio|Portfolio]]. Of special note is my [[https://twitch.tv/thurstylark|Twitch channel]], where you can watch me work out loud, in real-time. These resources will do a much better job of communicating my abilities than any work history document ever could. -If you require additional information that isn't covered in my portfolio or by the content of this site, please reach out to me using one of the methods listed on the [[contact|Contact Info]] page. +If you require additional information that isn't covered by the above resources, please reach out to me using one of the methods listed on the [[contact|Contact Info]] page. From 741123bb90ef00661719a9c7a75796155b8b9686 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 15 Sep 2021 00:53:02 -0500 Subject: [PATCH 39/41] moved password-store setup page to cheat sheets --- cheat-sheets.wiki | 5 +++++ index.wiki | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cheat-sheets.wiki b/cheat-sheets.wiki index 677fd2f..75747e5 100644 --- a/cheat-sheets.wiki +++ b/cheat-sheets.wiki @@ -9,3 +9,8 @@ == Syntax == * [[Vimwiki Formatting Cheat Sheet]] + + +== Environment == + +* [[Password-Store setup]] diff --git a/index.wiki b/index.wiki index 8d165e2..cf872f5 100644 --- a/index.wiki +++ b/index.wiki @@ -19,7 +19,6 @@ Half brain dump, half documentation practice. * [[Thurstylark-VPS]] -- All the services and little tweaks unique to my VPS * [[LetsEncrypt]] -- Usage of certbot, and relevant info for Apache configuration * [[Keyboard Mapping]] -- Changing keyboard mapping at the hwdb level -* [[Password-Store setup]] * [[cheat-sheets|Cheat Sheets]] -- One-pagers for often-repeated information ===Misc.=== From 9876ed12d9babf2f98f5c4b1b8e8f48269908587 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 15 Sep 2021 00:55:11 -0500 Subject: [PATCH 40/41] moved LetsEncrypt to thurstylark-vps page --- Thurstylark-VPS.wiki | 1 + index.wiki | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Thurstylark-VPS.wiki b/Thurstylark-VPS.wiki index bc11a1d..c5ca79d 100644 --- a/Thurstylark-VPS.wiki +++ b/Thurstylark-VPS.wiki @@ -6,5 +6,6 @@ Just a little Linode VPS running Arch, but it's a powerful little sucker. * [[Cgit]] * Apache +* [[LetsEncrypt]] -- Usage of certbot, and relevant info for Apache configuration * [[Weechat]] * Custom Repo diff --git a/index.wiki b/index.wiki index cf872f5..1d37935 100644 --- a/index.wiki +++ b/index.wiki @@ -17,7 +17,6 @@ Half brain dump, half documentation practice. === Reference === * [[Thurstylark-VPS]] -- All the services and little tweaks unique to my VPS -* [[LetsEncrypt]] -- Usage of certbot, and relevant info for Apache configuration * [[Keyboard Mapping]] -- Changing keyboard mapping at the hwdb level * [[cheat-sheets|Cheat Sheets]] -- One-pagers for often-repeated information From b2acce280f27d91ec82d8efe2166911934f733e8 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Wed, 15 Sep 2021 00:56:12 -0500 Subject: [PATCH 41/41] moved keyboard mapping to cheat sheets page --- cheat-sheets.wiki | 1 + index.wiki | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat-sheets.wiki b/cheat-sheets.wiki index 75747e5..36323ad 100644 --- a/cheat-sheets.wiki +++ b/cheat-sheets.wiki @@ -14,3 +14,4 @@ == Environment == * [[Password-Store setup]] +* [[Keyboard Mapping]] -- Changing keyboard mapping at the hwdb level diff --git a/index.wiki b/index.wiki index 1d37935..63125cb 100644 --- a/index.wiki +++ b/index.wiki @@ -17,7 +17,6 @@ Half brain dump, half documentation practice. === Reference === * [[Thurstylark-VPS]] -- All the services and little tweaks unique to my VPS -* [[Keyboard Mapping]] -- Changing keyboard mapping at the hwdb level * [[cheat-sheets|Cheat Sheets]] -- One-pagers for often-repeated information ===Misc.===