Skip to content

Instantly share code, notes, and snippets.

View pjobson's full-sized avatar
🥄
nom

Paul Jobson pjobson

🥄
nom
View GitHub Profile
@pjobson
pjobson / mediatek.md
Created November 17, 2026 02:16
MediaTek Inc. MT7612U

Searching for MediaTek MT7612U linux driver ubuntu/mint returns basicaly no good or useful results.
If you have a MT7612U or various other MediaTek chipset networking devices, you can install linux-firmware-mediatek. This is especially useful if you're using mint and uninstall linux-nvidia* because you don't have an nvidia anything and it automatically uninstalls a bunch of other stuff, because "you totally don't need this stuff anymore."

linux-firmware-mediatek: Firmware for Mediatek Wi-Fi, Bluetooth, and Ethernet adapters and SoCs

sudo apt install linux-firmware-mediatek

Package details:

@pjobson
pjobson / install_m4b-tool.md
Created November 13, 2026 23:58
Manually Installing m4b-tool

Manually Installing m4b-tool.

If your distro does not have a mp4v2-utils package.

git clone git@github.com:enzo1982/mp4v2.git
cd mp4v2
git checkout v2.1.3
autoreconf -fi
# Leave off --prefix if you want a default install.

./configure --prefix=/opt/mp4v2

@pjobson
pjobson / videosizer.node.js
Last active October 15, 2026 02:38
Transcode MKV Videos Down in Size by Percent
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const process = require('process');
const readline = require('readline');
const shellescape = require('shell-escape');
const child_process = require('child_process');
const cliProgress = require('cli-progress');
@pjobson
pjobson / onidm.md
Last active September 11, 2026 02:08
Oxygen Not Included Developer Mode - Linux

Enable Developer Mode for Oxygen Not Included in Linux

  • Install the game.
  • Start the game.
  • Exit
  • ssh into your Steam machine or open a terminal.
  • Find your OxygenNotIncluded_Data path and cd to it.
  • Simply: cd $(find ~/ -type d -name "OxygenNotIncluded_Data" |head -n1)
  • touch debug_enable.txt
  • Start the game.
@pjobson
pjobson / NoFire.lua
Created August 4, 2026 06:49
NoFire Effect Mod for Balatro
--- STEAMODDED HEADER
--- MOD_NAME: No Fire
--- MOD_ID: NoFire
--- MOD_AUTHOR: [pjobson]
--- MOD_DESCRIPTION: Disables the fire visual effect on score displays
--- PRIORITY: 100
--- BADGE_COLOUR: FF4500
--- DISPLAY_NAME: No Fire
----------------------------------------------
@pjobson
pjobson / imagemagick_tiff_avif.md
Last active August 4, 2026 04:36
Build ImageMagick w/ TIFF & AVIF & WEBP
@pjobson
pjobson / python3.14.x_yt-dlp_deprecation.txt
Last active July 11, 2026 19:45
Build Python 3.14.x Install - yt-dlp deprecation error
# If you're on an older version of linux with Python 3.10.x, you
# can do this to avoid the python deprecation warning.
# I was having some problems compliling correctly with the listed
# installation instructions, so I made this primarily for myself.
# Deprecated Feature: Support for Python version 3.10 has been deprecated. Please update to Python 3.11 or above
# Yes, this is for Linux geared towards Mint/Ubuntu. No, I don't know how to do Windows stuff, maybe install WSL.
# This installs python to /opt/python/3.14.6
# Add to .bashrc: alias yt-dlp="/opt/python/3.14.6/bin/python3.14 ~/.local/bin/yt-dlp "
@pjobson
pjobson / yt-dlmv.sh
Created July 10, 2026 23:25
yt-dlp music video script
#!/bin/bash
# You'll need to update:
# * path to python3
# * path to yt-dlp
# * path to ffmpeg
# * download archive path
/opt/python/3.14.6/bin/python3 \
/home/pjobson/.local/bin/yt-dlp \
@pjobson
pjobson / smashRtoRestart.lua
Last active June 13, 2026 02:27
Balatro Mod - Smash R to Restart
--- STEAMODDED HEADER
--- MOD_NAME: Smash R to Restart
--- MOD_ID: SmashRtoRestart
--- MOD_AUTHOR: [pjobson]
--- MOD_DESCRIPTION: Press R 5 times in a row to start a new random run, this is useful if you play balatro via synergy and holding the R key does not work.
--- PRIORITY: 0
--- BADGE_COLOUR: E63946
--- DISPLAY_NAME: Smash R to Restart
----------------------------------------------
@pjobson
pjobson / MoarSpeeds.lua
Last active September 25, 2026 19:27
--- STEAMODDED HEADER
--- MOD_NAME: Moar Speeds
--- MOD_ID: MoarSpeeds
--- MOD_AUTHOR: [pjobson]
--- MOD_DESCRIPTION: Moar Balatro Speeds options!
----------------------------------------------
------------MOD CODE -------------------------