Skip to content

Instantly share code, notes, and snippets.

View pythoninthegrass's full-sized avatar

pythoninthegrass

View GitHub Profile
@pythoninthegrass
pythoninthegrass / remap_media_keys.json
Last active June 24, 2025 19:43
Use karabiner to remap media keys for YouTube Music Desktop (ytmdesktop) on macOS
{
"description": "Remap media keys for YouTube Music Desktop (ytmdesktop)",
"manipulators": [
{
"from": { "consumer_key_code": "play_or_pause" },
"to": [
{
"key_code": "p",
"modifiers": ["command", "option", "shift"]
}
@pythoninthegrass
pythoninthegrass / git_bundle.sh
Last active June 14, 2025 03:33
Alternative to git archive that retains git tracked files/directories
#!/usr/bin/env bash
# shellcheck disable=SC2046,SC2164,SC2317
# Global variables
logged_in_user=""
logged_in_home=""
repo_dir=""
output_dir=""
progress_file=""
@pythoninthegrass
pythoninthegrass / nvidia_error43_fixer.ps1
Created June 12, 2025 02:39
Refactor nando4eva's batch script to use powershell w/error handling
# Script: nvidia-error43-fixer.ps1
# Author: (C) 2018-2021 [email protected] (Converted to PowerShell by @pythoninthegrass)
# Homepage: https://egpu.io/nvidia-error43-fixer
param(
[switch]$Force
)
# Check if running as administrator
function Test-Administrator {
@pythoninthegrass
pythoninthegrass / zellij.kdl
Created June 9, 2025 20:37
zellij config
theme "tokyo-night"
default_layout "compact"
on_force_close "quit"
@pythoninthegrass
pythoninthegrass / config.toml
Last active June 20, 2025 19:21
mise config
[settings]
disable_backends = ["dotnet"]
[settings.pipx]
uvx = true
[tools]
1password-cli = "2.30.3"
aqua = "2.51.2"
"aqua:ahmetb/kubectx" = "0.9.5"
{
"permissions": {
"allow": [
"Bash(uv run:*)",
"Bash(timeout 5 uv run:*)",
"Bash(terraform:*)",
"WebFetch(domain:terraform.io)",
"WebFetch(domain:github.com)",
"WebFetch(domain:plainframework.com)",
"WebFetch(domain:readthedocs.io)"
@pythoninthegrass
pythoninthegrass / drugwars.txt
Created May 16, 2025 15:02 — forked from mattmanning/drugwars.txt
Drugwars for the TI-82/83/83+ Calculators
Lbl G
ClrHome
Disp " J.M.'S DRUGWAR"," SIMULATION",""," VERSION 2.00",""," JUST SAY NO."
2000→Z
5000→Y
0→V
100→K
1→B
2→N
0→I
@pythoninthegrass
pythoninthegrass / drugwars.cpp
Created May 16, 2025 14:57 — forked from gbowne1/drugwars.cpp
ghmiranda-drug-wars-fix
#include <iostream>
#include <vector>
#include <map>
#include <memory>
enum class Objects {
Acid,
Weed,
Speed,
Cocaine,
@pythoninthegrass
pythoninthegrass / scratch.go
Last active May 14, 2025 02:38
llm generated iris rest server to make gql requests
package main
import (
"context"
"fmt"
"net/http"
"strings"
"github.com/kataras/iris/v12"
"github.com/thepolyglotdeveloper/graphql"
@pythoninthegrass
pythoninthegrass / Ubuntu_Vagrant_libvirt.md
Created May 12, 2025 16:57 — forked from PaulNeumann/Ubuntu_Vagrant_libvirt.md
How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS Desktop or Server

How to Install the Vagrant libvirt Provider on Ubuntu 22.04.2 LTS (and above) Desktop or Server

This document describes how to install the Vagrant libvirt provider on Ubuntu 22.04.2 LTS Desktop or Server. Much of the content is based on a blog post by Philippe Vanhaesendonck of Oracle Corp. describing how to set up the Vagrant libvirt provider on Oracle Linux.

All of the commands shown should be run in a terminal window or SSH session.

Before You Start

Verify That Your CPU Supports Hardware Virtualization