Skip to content

Instantly share code, notes, and snippets.

View westinn's full-sized avatar
🐕

Nick westinn

🐕
  • Washington D.C.
  • 11:58 (UTC -04:00)
View GitHub Profile
@westinn
westinn / sunshine-fix.sh
Created April 28, 2026 22:16
Bazzite Sunshine Fix
#!/bin/sh
# Load uhid (DS5 emulation)
echo "Loading uhid kernel module for DS5 emulation."
modprobe uhid
# Ensure Sunshine can grab images from KMS
path_to_setcap=$(which setcap)
path_to_sunshine=$(readlink -f "/home/linuxbrew/.linuxbrew/bin/sunshine")
if [ -x "$path_to_setcap" ] ; then
@westinn
westinn / mac-plex-fix.sh
Last active October 23, 2025 21:57
Mac OS Plex Client Fix for Playback Error: 4294967283
#!/usr/bin/env bash
## This is a fix for the MacOS Plex app on Apple Silicon, at least for my client app. Version 1.110.0.351-4e48eb83.
## I am not sure why it doesn't work out of the box, but updating this manually and symlinking it to the expected location seems to fix it for me.
BROKEN_MPV_LOCATION="/Applications/Plex.app/Contents/Frameworks"
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
# Backing up broken version of libmpv.2.dylib
echo "Backing up broken version of libmpv.2.dylib..." &&
@westinn
westinn / tmux.md
Created August 15, 2018 14:32 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a