Skip to content

Instantly share code, notes, and snippets.

View pjobson's full-sized avatar
:shipit:
p̰͍͖̄̀ͬ̒̎̅a̲͚̯̱̺͗̿̓̆͊̀͌ǘ̳̹͙͔̘̈ͭ̋̒ͭ̋lͫ̔ͯ̂ ͎͖͍̤ͣͧ̀ͨj̾o̹̗͍̲̽ͥ́̊͐b̪ͬͪͫ̂s̙̫͕̼̭͛̍̔on̽

Paul Jobson pjobson

:shipit:
p̰͍͖̄̀ͬ̒̎̅a̲͚̯̱̺͗̿̓̆͊̀͌ǘ̳̹͙͔̘̈ͭ̋̒ͭ̋lͫ̔ͯ̂ ͎͖͍̤ͣͧ̀ͨj̾o̹̗͍̲̽ͥ́̊͐b̪ͬͪͫ̂s̙̫͕̼̭͛̍̔on̽
View GitHub Profile
@pjobson
pjobson / jellyfin_custom_ffmpeg.md
Last active May 6, 2025 05:22
Jellyfin Custom Install

Installing Jellyfin

I do things a bit more custom on my server than most folks.

Using the install-debuntu.sh script, I was running into an issue where jellyfin would not start properly, due to the included ffmpeg not working.

I was getting this error when running sudo systemctl status jellyfin.service

MediaBrowser.Common.FfmpegException: Failed to find valid ffmpeg
@pjobson
pjobson / disable_pci_device.md
Created May 1, 2025 11:46
Instructions for Disabling a PCI Device Linux

Instructions for Disabling a PCI Device Linux

I want to disable the onboard WiFi card, as I use a better USB one. Having both of them was causing weird conflicts where they'd both try to connect to the network at the same time and would keep the machine from connecting outside of the netowrk.

Start with:

lspci
@pjobson
pjobson / update-chirp.sh
Created April 26, 2025 20:00
Installs/Updates CHIRP
#!/bin/bash
# This was written for Mint/Ubuntu, should be pretty easy to update for other distros
# install python wxgtk4.0 & pipx
sudo apt install python3-wxgtk4.0 pipx -y
# get the next release
NEXT=$(curl -s https://archive.chirpmyradio.com/chirp_next/ | grep "next-" | head -n1 | sed -e 's/.\+href="//' | sed -e 's/">.\+//')
# find the whl file
@pjobson
pjobson / install_balatro_mods_mint_steam.md
Last active May 10, 2025 04:33
Install Balatro Mods on Linux Mint Steam

Install Balatro Mods on Linux Mint Steam

Install Balatro

If you're doing a clean install, follow this. If you're already installed just add the Launch Options at #4, then skip to Make Temp Path below.

  1. Open Steam
  2. Select Balatro
  3. Click Gear Icon then Properties
@pjobson
pjobson / unlock.txt
Created January 19, 2025 08:07
Unlock Code for ESSGOO MP5 / AJ002-OB
"Factory" option in Car Settings
000000
Developer Options Password:
yyyy.mm.dd
ex: 2025.01.01
@pjobson
pjobson / nvidia.plex.md
Created January 11, 2025 05:06
Fixing Tesla Issues to Use With Plex (Mint / Ubuntu)

Fixing Nvidia Drivers to Use With Plex

I've read through what seems like infinity stack**** posts and various other things, this worked for me on a server with a Tesla card running Mint kernel 6.8.x

Errors

$ nvidia-smi
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure 

that the latest NVIDIA driver is installed and running.

@pjobson
pjobson / ACR122U_NFC.md
Last active May 13, 2025 06:32
Installing USB Advanced Card Systems, Ltd ACR122U NFC Reader / Writer (Debian, Mint, Ubuntu)

Installing USB Advanced Card Systems, Ltd ACR122U NFC Reader / Writer (Debian, Mint, Ubuntu)

ACR122U

Intro

I've found a lot of conflicting information on getting one of these up and running on Debian/Ubuntu/Mint, this is a guide to what I did to get mine working. This was tested on Orange Pi 1.0.2 Bookworm aarch64 and Linux Mint 21.3 x86_64.

The OrangePi (and possibly other SBC devices) does not provide enough power to the USB port to activate the reader. You will need to get a powered USB hub.

@pjobson
pjobson / steamkill.sh
Created November 19, 2024 22:02
Script For Killing All Steam Processes in Linux
#!/bin/bash
# Steam on Linux doesn't seem to like to actually
# quit, when you tell it to quit.
# Get all of the Steam processes
STEAMPROCESSES=$(ps aux | grep Steam | grep valvesoftware)
# Loop and kill them one-by-one
while read STEAMPROCESSES; do
@pjobson
pjobson / libncurses5_on_mint22.md
Last active May 3, 2025 08:49
libncurses5 on Mint 22
wget http://ftp.net.usf.edu/pub/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2_amd64.deb
wget http://ftp.net.usf.edu/pub/ubuntu/pool/universe/n/ncurses/libncurses5_6.3-2_amd64.deb
wget http://ftp.net.usf.edu/pub/ubuntu/pool/universe/n/ncurses/libncursesw5_6.3-2_amd64.deb

sudo dpkg -i libtinfo5_6.3-2_amd64.deb
sudo dpkg -i libncurses5_6.3-2_amd64.deb
sudo dpkg -i libncursesw5_6.3-2_amd64.deb
    
rm -f libtinfo5_6.3-2_amd64.deb libncurses5_6.3-2_amd64.deb libncursesw5_6.3-2_amd64.deb
@pjobson
pjobson / videoduration.sh
Created August 3, 2024 06:33
get the duration of a video
#!/bin/bash
if [[ $1 = "" ]]; then
echo "Shows video length in minutes."
echo "Expects: videoduration.sh filename.mp4"
else
length=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "${1}" | sed -E 's/\.[[:digit:]]+$//')
zpad=`printf %03d $(($length / 60))`
echo "${zpad} min - ${1}"
fi