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 Apr 23, 2019
Asus Pike 2008 IT Mode Cross Flash

Flashing Asus 2008 PIKE to IT Mode

Used on an Asus Z8PE-D18 board with no EFI boot options. These instructions were written using Linux Mint to create the media, most distributions will work with little modification.

The PIKE 2008 is basically a LSI 9220-8i which you can flash with 9211-8i firmware. Flashing to IT mode allows you to have direct access to the disks to use btrfs or zfs or some kind of software RAID instead of the card's RAID.

Here is a reference for chipsets and motherboard support for various PIKE cards. Check out the LSI RAID Controller and HBA Complete Listing Plus OEM Models thread on ServeTheHome for more on RAID cards and flashing options.

  • PIKE 1064E → LSI SAS 1064E
    • Unknown Board Support
pjobson /
Created Feb 22, 2019
Generates the PLEX "Cinema Trailers pre-roll video" String from a Specified Path
IFS=$'\n' LIST=( $(find ${PREROLLPATH} -type f) )
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
pjobson / force-scrollbars-visible.css
Created Jan 8, 2019 — forked from IceCreamYou/force-scrollbars-visible.css
Mac OS X hides scrollbars by default. This is annoying for UI design because it means users might not realize that certain areas are scrollable. This public domain Gist forces the scrollbar to always be visible with native behavior in Webkit-based browsers (Chrome and Opera) on Macs.
View force-scrollbars-visible.css
.force-show-scrollbars ::-webkit-scrollbar-track:vertical {
border-left: 1px solid #E7E7E7;
box-shadow: 1px 0 1px 0 #F6F6F6 inset, -1px 0 1px 0 #F6F6F6 inset;
.force-show-scrollbars ::-webkit-scrollbar-track:horizontal {
border-top: 1px solid #E7E7E7;
box-shadow: 0 1px 1px 0 #F6F6F6 inset, 0 -1px 1px 0 #F6F6F6 inset;
pjobson /
Last active Dec 6, 2018
PLEX Double-NAT Setup

PLEX Double-NAT Setup

In the PLEX Troubleshooting Remote Access they have a small section on setting up for Double-NAT, but don’t really get into how to actually do it. In my network I am using a Double-NAT setup with FIOS.

I use the FIOS AC1750 router from which I run an ethernet connection to a Buffalo WZR-HP-AG300H running OpenWRT to which I have my PLEX server and other internet devices connected.

Network Diagram

Here’s a simple diagram of my network.

pjobson /
Last active Apr 17, 2019
VirtualBox Headless Ubuntu/Mint

VirtualBox Headless Ubuntu/Mint with phpVirtualBox

I had a lot of trouble setting this up, the guides out there don't seem complete. I used various guides and troubleshooting sites to get all of this figured out.

NOTE: My server's internal IP address is, you will need to substitute yours where appropriate.

Software Versions Used

  • Server Side
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 / saoc.html
Last active Feb 9, 2019
Car Search Craigslist Continental US
View saoc.html
Car Search Craigslist Continental US
Min Price: <input type="text" id="minPrice" value="1500" />
Query: <input type="text" id="term" />
<input checked="checked" type="radio" name="region" value="bmore" /> Bmore Region <input type="radio" name="region" value="all" /> Contential US
<button id="btn">SEARCH</button>

OpenWRT Notes

opkg update
opkg install bash
opkg install adblock

USB Mount and fstab

opkg install kmod-fs-ext4 kmod-usb-storage usbutils mount-utils kmod-usb-storage-extras block-mount kmod-scsi-core e2fsprogs fdisk swap-utils
fdisk -l
pjobson /
Created Oct 16, 2018
dd optimal blocksize detection
# Copied from:
# Since we're dealing with dd, abort if any errors occur
set -e
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=1; fi
You can’t perform that action at this time.