Skip to content

Instantly share code, notes, and snippets.

View ElijahLynn's full-sized avatar
😎
All Your DevOps Belong To Us

Elijah Lynn ElijahLynn

😎
All Your DevOps Belong To Us
View GitHub Profile
@ElijahLynn
ElijahLynn / fix-audio
Created June 15, 2026 03:34
Fix Sony XM6 multi-point switching on Arch Linux (PipeWire)
#!/bin/bash
# Script to "kick" Sony XM6 headphones when multi-point switching gets stuck
CARD="bluez_card.80_99_E7_DE_5F_68"
echo "Attempting to reset Bluetooth audio for Eli Beats..."
# 1. Toggle profile to "off" and back to "a2dp-sink"
# This usually forces the transport to re-handshake without a full disconnect
echo "-> Resetting profile..."
@ElijahLynn
ElijahLynn / cursor-python-ansible-extensions.md
Created June 8, 2026 21:59
Cursor: Python + Ansible extension compatibility fix (PET binary, pinned Python 2024.20.0)

Cursor: Python + Ansible Extension Compatibility

Notes for fixing extension activation failures and Python environment warnings when using Ansible 26.6+, Python Environments, and ms-python.python in Cursor on macOS.

Tested on Cursor ~1.105 (VS Code 1.105 base), macOS arm64, June 2026.

Symptoms

  • Notification: "Extension activation failed" — root cause is usually ms-python.python
@ElijahLynn
ElijahLynn / 00-summary.md
Last active June 8, 2026 02:27
Ralph Wiggum Loop: Claude Code xhigh vs low effort comparison

Ralph Wiggum Loop: xhigh vs low effort comparison

Testing the Claude Code agentic loop (claude -p --dangerously-skip-permissions) building a small Python CLI from scratch, with two effort levels compared.

Setup

  • App: Ralph Wiggum Quotes CLI — random, list, add, delete subcommands, stdlib only
  • Loop: while grep -q '\- \[ \]' implementation_plan.md — one task per iteration, auto-terminates
  • Branches: main (xhigh/default effort) vs no-thinking (--effort low)
@ElijahLynn
ElijahLynn / gist:73d7d72c2edd1cf5baa32f78fa5496de
Created June 7, 2026 01:25
rebind touch screen - x1 yoga , arch linux + gnome (sometimes it stops working)
dconf reset -f /org/gnome/desktop/peripherals/tablets/056a:52b5/
echo i2c-WACF2200:00 | sudo tee /sys/bus/i2c/drivers/i2c_hid_acpi/unbind
echo i2c-WACF2200:00 | sudo tee /sys/bus/i2c/drivers/i2c_hid_acpi/bind

How to format strings as code w/keyboard shortcuts in various tools:

Slack

  • inline - cmd + shift + c
  • block - cmd + shift + e
  • select any code block, triple click it

GitHub issues and comments - w/Refined GitHub Extension

  • inline - double click to highlight the string, then press ` to wrap in backticks
  • block - ??
@ElijahLynn
ElijahLynn / README.md
Last active November 13, 2025 22:06
GitHub notification spam remover script by bejamincburns
@ElijahLynn
ElijahLynn / fingerprint-sudo-mac.md
Last active September 15, 2025 23:00
fingerprint sudo on mac

TIL: For a consistent fingerprint auth experience on Mac, for both GUI and CLI, I learned that I can add this snippet to the top of /etc/pam.d/sudo:

auth       sufficient     pam_tid.so

and now everytime I get a password prompt, I instead get a fingerprint popup modal. Saves a ton of time if you have a longer password.

@ElijahLynn
ElijahLynn / gist:9443e3b34b462fa6a9f730542663fe90
Last active April 12, 2025 00:01
cli wrapper for docker
I want to create a boiler plate project to create CLI commands that wrap around docker. Then have all the scripting in a Docker image and the CLI program passes the args and any ENV vars for secrets (api access) to the docker run.
I am not easily finding anything like this, but this is a start:
https://andrewlock.net/packaging-cli-programs-into-docker-images-to-avoid-dependency-hell/
@ElijahLynn
ElijahLynn / gist:f3e3f5e5db0249cd7c787fe5f11f5a16
Last active December 25, 2025 14:13
How to set the zone for the gcloud cli tool
# sets the default zone for your gcloud CLI. It means it will apply to all your future gcloud commands coming from that same terminal.
gcloud config set compute/zone <zone>
# default value for this specific project only.
gcloud compute project-info add-metadata --metadata google-compute-default-zone=<zone>
# https://www.reddit.com/r/googlecloud/comments/brshdg/how_to_set_correctly_default_zoneregion_via_gcloud/
@ElijahLynn
ElijahLynn / known_hosts_remove_line.fish
Created April 8, 2025 18:27
fish functions known_hosts_remove_line
functions known_hosts_remove_line
# Defined via `source`
function known_hosts_remove_line
# get total number of lines in the known_hosts file
set total_lines (wc -l < ~/.ssh/known_hosts | tr -d ' ')
if test $argv[1] -gt $total_lines
echo "Line number $argv[1] exceeds total lines ($total_lines) in ~/.ssh/known_hosts"
return 1
end
sed -i '' "$argv[1]d" ~/.ssh/known_hosts