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 / install_balatro_mods_mint_steam.md
Last active March 30, 2025 17:58
Install Balatro Mods on Linux Mint Steam

Install Balatro Mods on Linux Mint Steam

Open Steam

Select Library -> Balatro -> Gear Icon -> Properties

On LAUNCH OPTIONS put:

WINEDLLOVERRIDES="version=n,b" %command%
@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 January 15, 2025 04:48
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 January 26, 2025 05:23
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
@pjobson
pjobson / bluetooth_cli.md
Last active July 22, 2024 20:20
Linux Bluetooth CLI with BluetoothCTL

Linux Bluetooth CLI with BluetoothCTL

I've had a lot of problems using the built in blueman application under Ubuntu/Mint distributions. I'm not exactly sure why, frequently devices will connect then instantly disconnect. I've parsed through various StackOverflow articles and other help pages, I could never get a working answer.

WARNING

If you're having bluetooth issues, do not uninstall the libbluetooth3 package. It

@pjobson
pjobson / steam_large_font.txt
Created July 20, 2024 16:49
Run Steam with Larger Font in Linuz
Direct Install:
Exec=sh -c 'GDK_SCALE=2 steam %U'
Flatpak Install:
sh -c 'GDK_SCALE=1.5 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam --file-forwarding com.valvesoftware.Steam @@u %U @@'
************* update your path here
alias yt-dlp="/home/pjobson/bin/yt-dlp --write-sub --write-auto-sub --sub-lang "en.*" --ffmpeg-location /opt/video/bin/ffmpeg -S vcodec:h264,res,acodec:m4a --remux-video mkv --merge-output-format mkv "
******************************************************************************************************* update your path here