Skip to content

Instantly share code, notes, and snippets.

View ruandre's full-sized avatar
🌳
touch grass

RuandrΓ© Janse van Rensburg ruandre

🌳
touch grass
View GitHub Profile
@ruandre
ruandre / .bashrc
Created October 20, 2025 21:15
.bashrc WSL Debian
# fix dir colors in wsl
LS_COLORS+=':ow=01;33'
alias q='exit'
alias upup='sudo apt update && sudo apt upgrade -y'
alias ls='clear && ls --color=auto'
alias ll='clear && ls --color=auto -alhF'
alias lll='clear && ls --color=auto -alhF *'
@ruandre
ruandre / nix-on-wsl-debian.md
Created October 20, 2025 21:07
Nix on WSL Debian

Nix on WSL Debian

Prep

Install these if not already available:

sudo apt install curl xz-utils
@ruandre
ruandre / regex.js
Last active October 20, 2025 21:02
regex lookahead/lookbehind
// (?!) - negative lookahead
// (?=) - positive lookahead
// (?<=) - positive lookbehind
// (?<!) - negative lookbehind
const { log } = console
const s = 'See the parrot. And the goat. And the rooster.'
// Word before period:
// See the [parrot]. And the [goat]. And the [rooster].
@ruandre
ruandre / win11.md
Last active October 20, 2025 21:16
Windows 11
@ruandre
ruandre / Profile.ps1
Last active October 20, 2025 20:07
PowerShell Profile.ps1
# β”Œβ”€β”β”¬ β”¬β”Œβ”€β”β”¬ ┬
# β”œβ”€β”˜β”‚β”‚β”‚β””β”€β”β”œβ”€β”€
# β”΄ β””β”΄β”˜β””β”€β”˜β”΄ β”΄
# %USERPROFILE%\Documents\PowerShell\Profile.ps1
# β”Œβ”€β”β”Œβ”β”Œβ”¬ ┬
# β”œβ”€ β”‚β”‚β”‚β””β”β”Œβ”˜
# β””β”€β”˜β”˜β””β”˜ β””β”˜
# set the default editor (example)
@ruandre
ruandre / settings.jsonc
Last active October 20, 2025 20:30
Windows Terminal Settings
{
// link to Windows Terminal documentation
"$help": "https://aka.ms/terminal-documentation",
// JSON schema for validation and IntelliSense
"$schema": "https://aka.ms/terminal-profiles-schema",
// custom actions available for keybindings and command palette
"actions": [
{
// sends "cd -" to the shell (go to previous directory)
"command": {