Skip to content

Instantly share code, notes, and snippets.

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

Paul Jobson pjobson

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

Report or block pjobson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pjobson /
Last active Oct 20, 2019
Notes for OpenWRT on NanoPi R1

OpenWRT on NanoPi R1

This guide assumes you're using linux or some kind of OS with a shell, you can use Windows with some modifications.


Install Latest OpenWRT

pjobson /
Last active Oct 17, 2019
Clover Boot Flags

Clover Boot Flags

Flag Description
-v Verbose Mode
-x Safe Mode
-s Single User Mode
-no-zp Zone Postponing (use if hanging)
cpus=1 Single CPU Core Mode
-f No Kext Cache Mode (use if hanging)
pjobson /
Last active Oct 15, 2019
OSX McAfee Removal

Removal of McAfee from OSX

Note: This was written in 2015, it may be out of date now.

There are a lot of commands here which I use sudo if you don't know what you're doing with sudo, especially where I rm you can severely screw up your system.

There are many reasons which you would want to remove a piece of software such as McAfee, such as not wanting it to hammer your CPU during work hours which seems like primetime for a virus scan.

I intend this to be a living document, I have included suggestions from peoples' replies.


Some Recipies for ffmpeg Usage

I screw around with ffmpeg a lot, here are some recipies which I frequently use.



ffmpeg -i blah.vtt
for i in *.vtt ; do ffmpeg -i "$i" "$" ; done
pjobson /
Last active Sep 6, 2019
Google Fi USSD Codes

Google Fi USSD Codes

Type Code Description
Google Fi *#*#342886#*#* Set carrier selection to automatic
Google Fi *#*#344636#*#* Get information about the current network
Google Fi *#*#346398#*#* Select Next Carrier
Google Fi *#*#3474666#*#* Select Three Carrier (UK only)
Google Fi *#*#347626#*#* Turn on International Roaming
pjobson /
Last active Sep 6, 2019
init.d script for starting deluged and deluge-web together
# Install:
# sudo wget -O /etc/init.d/deluge
# sudo chmod +x /etc/init.d/deluge
# Edit /etc/init.d/deluge changing your user to whatever.
# sudo vi /etc/init.d/deluge
# Register the Service
# sudo update-rc.d deluge defaults
# Start Service
# sudo /etc/init.d/deluge start
Usage: youtube-dl [OPTIONS] URL [URL...]
General Options:
-h, --help Print this help text and exit
--version Print program version and exit
-U, --update Update this program to latest version. Make sure that you have sufficient
permissions (run with sudo if needed)
-i, --ignore-errors Continue on download errors, for example to skip unavailable videos in a playlist
--abort-on-error Abort downloading of further videos (in the playlist or the command line) if an
pjobson /
Last active Aug 21, 2019
Syncthing Ubuntu/Mint Headless

Syncthing Ubuntu/Mint Headless


Syncthing is a free, open-source peer-to-peer file synchronization application available for Windows, Mac, Linux, Android, Solaris, Darwin, and BSD. It can sync files between devices on a local network, or between remote devices over the Internet. Data security and data safety are built into the design of the software.

This is written using Linux Mint 18.1 Serena x86_64 using kernel 4.4.0-139-generic.

I couldn't find good directions for doing this, so here we go.

pjobson /
Last active Aug 12, 2019
How to Unbrick the Buffalo WZR-HP-G300NH

Unbricking a Buffalo WZR-HP-G300NH

TFTP recovery in OSX 10.13

Similar steps can be used under Linux, I have no idea how to Windows anymore. This will probably work for similar Buffalo WZR routers, though your milage may vary. These directions flash the router back to stock Buffalo branded DDWRT.

When these routers brick they tend to go into a kind of reboot mode. At the begining of the reboot, the TFTP server is available for a brief period of time, then all of the lights flash and the unit reboots. We're exploiting the short period of time where the router is in TFTP mode at the start of the reboot. You can try to do a put via TFTP at the begining of this cycle, even if your router has been plugged in for awhile.

Back to Stock Buffalo Branded DDWRT

pjobson / screentearing.txt
Last active Jul 18, 2019
Reduce Screen Tearing XFCE
View screentearing.txt
sudo apt install composer python-pyqt5 git
git clone
Set to XFCE + Composer
You can’t perform that action at this time.