Skip to content

Instantly share code, notes, and snippets.

@asears
asears / mcplinks.md
Created April 13, 2025 10:53
MCP Configurations
@asears
asears / promptlinks.md
Last active April 4, 2025 01:59
Selection of the 500 or so prompts and related in Github as of April 1, 2025
@asears
asears / nox.md
Last active January 5, 2025 15:07
Nox Cookbook
@asears
asears / migrate_uv.md
Created January 5, 2025 14:59
UV - Migration from pyenv
@asears
asears / git_worktree.md
Created January 5, 2025 14:56
Git - Using worktrees

Git Worktree

  • Alternative to git stash save -m "mywip"
  • Alternative to cloning the repo again
  • 'clone' a worktree tracked folder
git worktree add -b feature/mybranch ../myfolder main
@asears
asears / kdiff3-config.md
Created November 2, 2024 12:57 — forked from JeffMill/kdiff3-config.md
kdiff3 configuration for Windows

KDiff3

Fast on Linux and Windows, and supports 3-way merging! Diffinity and Meld are a couple of other viable options.

KDiff3 Merge Tutorial

Install KDiff3

winget install KDE.KDiff3
@asears
asears / Setup-Windows11-VM.ps1
Created November 2, 2024 12:57
Run Windows 11 in VM
#requires -RunAsAdministrator
# .\Setup-Windows11-VM.ps1 -VMName 'W11' -SwitchName 'Default Switch' -ISOFile 'C:\Users\jeffmill\Downloads\ISO\Windows 11 - Version 22H2.iso' -VMPath 'E:\VM'
Param(
# Virtual Machine Name
[Parameter(Mandatory = $true)][string]$VMName,
# Virtual Switch to be used - see Get-VMSwitch
[Parameter(Mandatory = $true)][string]$SwitchName,
# Full path for the install media (ISO file)
@asears
asears / WordAutomation-Threaded.ps1
Created November 2, 2024 12:55 — forked from JeffMill/WordAutomation-Threaded.ps1
Automate word (threaded)
$ScriptBlock =
{
Param([int]$RunNumber)
$filename = Join-Path ([IO.Path]::GetTempPath()) "powershell-$RunNumber.doc"
'Opening Word ...'
$oWord = New-Object -Com Word.Application
$oWord.Visible = $true
@asears
asears / ripgrep-cheat-sheet.md
Created November 2, 2024 12:50
RipGrep (rg) Cheat Sheet
Command Description
rg pattern Search pattern in current dir recursively
rg pattern utils.py Search in a single file utils.py
rg pattern src/ Search in dir src/ recursively
rg '^We' test.txt Regex searching support (lines starting with We)
rg -F '(test)' Search literally, i.e., without using regular expression
rg -i pattern Search pattern and ignore case (case-insensitive search)
rg -S pattern Smart case search (match case of pattern)
rg pattern -g '*.py' File globbing (search in certain files), can be used multiple times