This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #################################################################################################### | |
| # dotNetDave's (David McCarter) Editor Config - dotNetTips.com | |
| # Updates to this file are posted quarterly at: https://bit.ly/EditorConfig5 | |
| # Updated May 1, 2025 | |
| # Code performance book is available at: https://bit.ly/DotNetCodePerf4 | |
| # Coding standards book is available at: https://bit.ly/CodingStandards8 | |
| #################################################################################################### | |
| root = true | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # include this from .bashrc, .zshrc or | |
| # another shell startup file | |
| # this script does nothing outside ShellFish | |
| if [ "$LC_TERMINAL" = "ShellFish" ]; then | |
| printURIComponent() { | |
| awk 'BEGIN {while (y++ < 125) z[sprintf("%c", y)] = y | |
| while (y = substr(ARGV[1], ++j, 1)) | |
| q = y ~ /[a-zA-Z0-9]/ ? q y : q sprintf("%%%02X", z[y]) | |
| printf("%s", q)}' "$1" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* basic colors */ | |
| .black { color: #2e3034 } | |
| .gold { color: #e3ccb4 } | |
| .jetblack { color: #000000 } | |
| .rosegold { color: #ecc6c1 } | |
| .silver { color: #e2e3e4 } | |
| .spaceblack { color: #1c1d1e } | |
| .spacegray { color: #b1b2b7 } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Install deps | |
| # sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra | |
| # sudo apt-get install -y texlive-xetex | |
| # sudo apt install -y ghostscript | |
| # wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb | |
| # sudo apt install -y ./pandoc-2.9.2.1-1-amd64.deb | |
| # rm ./pandoc-2.9.2.1-1-amd64.deb | |
| #cp fonts/*.ttf ~/.fonts # I use Google Fonts (Roboto -> please see line 8) | |
| cd book # directory where markdown files can be found | 
This file is intended to explain the details of how a specific regular expression works. This particular regular expression is used to match a HEX value. The description below will detail each component of the regular expression and how it works.
We will be evaluating the following regular expressions used to match HEX values:
/^#?([a-f0-9]{6}|[a-f0-9]{3})$/
Do you want to do remote development on your WSL2 container in Visual Studio Code? Read this.
- On the host set up OpenSSH for Windows
- Run wsl --updateto make sure you are running the latest WSL
- Open WSL and install another SSH server inside WSL with sudo apt-get install openssh-server
- Now run sudo systemctl enable --now sshto automatically start ssh when WSL starts.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | apk add py3-pip | |
| pip3 install youtube-dl | |
| # download video | |
| youtube-dl --no-check-certificate link | |
| # run in background | |
| youtube-dl --no-check-certificate -q link & | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | cd | |
| # you can do this all in one command | |
| wget -qO- http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86/apk-tools-static-2.10.5-r1.apk | tar -xz sbin/apk.static && ./sbin/apk.static add apk-tools && rm sbin/apk.static | |
| apk add python3 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Variables used by Scriptable. | |
| // These must be at the very top of the file. Do not edit. | |
| // icon-color: orange; icon-glyph: sun; | |
| /////////////////////////////////////////////////////////////////////// | |
| // dawn2dusk.js | |
| // Origin: | |
| // https://gist.github.com/HendrikRunte/4b5d03cb26e31508bc96553ad3c10f47 | |
| // Take it and have fun. | |
| // Hendrik Runte, Nov 12, 2020, 17:33. |