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
# /etc/systemd/system/qbittorrent-nox.service
[Unit]
Description=qBittorrent Command Line Client
After=network.target
[Service]
Type=forking
User=qbt
Group=qbt
UMask=007
@pjobson
pjobson / _dell_thunderbolt_in_thinkstation_p330.md
Last active May 28, 2024 21:59
Dell 83T0C Thunderbolt Card in ThinkStation P330

Dell 83T0C Thunderbolt Card in Lenovo ThinkStation P330

The Lenovo ThinkStation P330 can be upgraded to Thunderbolt 3 using their riser card (p/n 4XH0Y77510).

The card requires DisplayPort in and a 5-pin connector. These cards originally retailed for around $200-$300, they can be had on eBay as of this writing for $100 from China.

I purchased a ThinkStation P330 and noticed the connections for the card,

@pjobson
pjobson / install_k9copy.txt
Created April 19, 2024 19:57
Linux Mint/Ubuntu Install K9Copy Reloaded
https://launchpad.net/~tomtomtom/+archive/ubuntu/k9copy
sudo add-apt-repository ppa:tomtomtom/k9copy
sudo apt update
sudo apt install k9copy
@pjobson
pjobson / mount_qcow2.md
Last active March 26, 2024 21:05 — forked from ILMostro/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@pjobson
pjobson / webapp_adblock.md
Created March 14, 2024 05:11
Linux Adblock YouTube WebApp

Linux Adblocked YouTube WebApp

I suspect this will work for any Mint/Debian/Ubuntu variant distribution.

WebApps

This requires a package called WebApps included with Linux Mint. You can download the source or deb file from their releases section, it is contained in the packages.tar.gz file.

@pjobson
pjobson / allow_admin_wan.txt
Created March 13, 2024 03:50
OpenWRT Allow Admin on WAN
Add to the end of: /etc/config/firewall
config rule
option name 'Allow-Admin-Wan'
list proto 'tcp'
option src 'wan'
option dest_port '22 80 443'
option target 'ACCEPT'
option enabled 'true'
@pjobson
pjobson / cheats_pcsx2_linux.md
Last active October 1, 2024 22:07
Enable Cheats PCSX2 Linux

Enable Cheats for PCSX2 Linux

This assumes:

  • You have the Linux AppImage and are successfully running games with it.
  • You have rudimentary commandline experience.

I'll be using Fallout: Brotherhood of Steel for this example, but the concepts should be the same for any game.

Enable Cheats

@pjobson
pjobson / glances_init.d.txt
Last active May 6, 2024 19:41
glances notes
#!/bin/sh
### BEGIN INIT INFO
# Provides: glances
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start glances at boot time
# Description: Start glances at boot.
### END INIT INFO
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
#!/bin/bash
# Make Some Directories
mkdir -p ~/bin ~/code
# Update apt
sudo mint-switch-to-local-mirror
sudo apt update
# Multimedia CODECs