Miscellaneous tips, tricks, and thoughts from the author known as S0AndS0, source code that builds this site is available on
AI and ML Tips
Collection of Artificial Intelligence and Machine Learning posts-
Proompt engineer challange Nix `attrsOf`
An open invite to AI minimalists to show-off proompting prowess
Awk Tips
Collection of Awk tips and tricks-
Running shell commands with variable assigned parameters
Awk can take control of pipes instead of piping from a shell process to Awk -
Pattern match against variable value
TLDR$0 ~ _variable_name { print } -
Hello World in pure Awk
TLDR use shebang with-fto make file an Awk script, eg.#!/usr/bin/awk -f
Bash Tips
Collection of Bash tips and tricks-
Find append found paths
TLDRfind <DIRECTORY> -type f -exec <COMMAND> {} '+' -
Prevent single commands from being logged to Bash History
TLDR<COMMAND>; history -d $((HISTCMD-1)) -
Redirect local standard-in to remote over SSH
TLDR utilize here-doc or here-string
Cooking Tips
Cooking tips and tricks and recipes-
Slow Cooker Beef Ribeye Roast
Simple slow cooker recipe for beef ribeye roast
CSS Tips
Collection of CSS tips and tricks-
Text Shadow
TLDRtext-shadow: 0.05em 0.05em black, -0.05em -0.05em black
Docker Tips
Docker tutorials, guides, and/or quick tips-
Docker Compose NGINX Reverse Proxy cache Jekyll GitHub Metadata
Guide for caching GitHub API responses via NGINX reverse proxy for use with Jekyll GitHub Metadata plugin
Erlang Tips
Collection of Erlang tips and tricks-
Rebar3 umbrella soup
Supervising supervisors in an umbrella Rebar3 managed Erlang project
GitHub Actions Tips
Collection of GitHub Actions tips, tricks, and examples-
Into the Deep-End
Compare more complex CI/CD configurations defined for Travis CI vs GitHub Actions -
Set Node Modules path in Github Actions Dockerfile
TLDRENV NODE_PATH=/usr/local/lib/node_modules -
Access GitHub Action inputs within JavaScript
TLDRprocess.env.INPUT_<NAME>
Git Tips
Collection of Git tips and tricks-
Git Worktree Sanity
How I manage multiple long-lived feature branches -
Show and copy file between branches
TLDRgit show <REMOTE>/<BRANCH>:<FILE> -
Submodule example for GitHub Pages
How to borrow code from other repositories without a dedicated package manager
JavaScript Tips
Collection of JavaScript tips and tricks-
Obliterate event listeners
Remove all event listeners from a HTML element in Chromium or Firefox based web-browsers -
This
Examples and a bit of history aboutthiskeyword in JavaScript ... and 1 more available to read!
Linux Tricks
Collection of Linux tips and tricks-
Install NixOS
Speed-run fresh NixOS install from a noob perspective -
Date Time conversions
Quick tips/tricks for converting date/time stamps between timezones -
SSH Client Configurations
Advanced reusable configuration examples for SSH
Liquid Tips
Collection of Liquid tips and tricks-
Combining `capture` with `strip` example
TLDR{% capture workspace %} <!-- some content --> {% endcapture %} {% workspace | strip %}
Nix Tricks
Collection of Nix tips and tricks-
Dict GCIDE packaging
Learned NixOS packages good by doing wrong things with the GNU flavored Dict -
Firejail wrap binaries automatically
My first love letter written to the Nix programming language
Posts
Miscellaneous posts that don't fit a specific category or collectionProjects
Collection of Project announcements-
GitHub Actions Utilities -- AI Bait
GitHub Action to encourage behavior changes from AI/ML scrapers that disrespect robots.txt -
Resume Builder
-
RaspberryPi Curious YouTube Player Announcement
Announcement of new project which enables easy playback of YouTube videos via CLI
Python Tips
Collection of Python tips and tricksRust Tips
Collection of Rust tips and tricks-
Parse object accessors recursively
Concise example of utilizing Pest grammars to recursively parse object accessors
Scammer Logs
Logs dumped from baiting scammers that make the mistake of reaching-out-
Cui from China
Wants to remote control PC to commit employment fraud via Upwork
Solidity Tips
Collection of Solidity tips and tricksVim Tips
Collection of Vim tips and tricks-
Make directory for current file
TLDR::command! Mkdir call mkdir(expand('%:h'), 'p') -
RegExp match programming case conventions
TLDRecho matchstrlist(['userId'], '\v(\u+\l*)|(\l+)|(\d+)|(\D|\A)')