Skip to content

Instantly share code, notes, and snippets.

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

Paul Jobson pjobson

:shipit:
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
pjobson / pike_it.md
Last active Apr 23, 2019
Asus Pike 2008 IT Mode Cross Flash
View pike_it.md

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
pjobson / PLEX-PreRoll-Generator.sh
Created Feb 22, 2019
Generates the PLEX "Cinema Trailers pre-roll video" String from a Specified Path
View PLEX-PreRoll-Generator.sh
#!/bin/bash
# YOUR PREROLL PATH
PREROLLPATH="/path/to/your/prerolls/"
# YOUR TOKEN
PLEXTOKEN="XXXXXXXXXXXXXXXXXXXX"
# FIND IN THIS PATH FOR FILES
IFS=$'\n' LIST=( $(find ${PREROLLPATH} -type f) )
@pjobson
pjobson / deluge.sh
Last active Sep 6, 2019
init.d script for starting deluged and deluge-web together
View deluge.sh
#!/bin/sh
# Install:
# sudo wget https://gist.githubusercontent.com/pjobson/f749e6654e5432c2f3a73fc421bc4a6b/raw/10de8e38f7bf03c5854b63ac863e268cdce4352c/deluge.sh -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
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
pjobson / plex_double_nat.md
Last active Dec 6, 2018
PLEX Double-NAT Setup
View plex_double_nat.md

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
pjobson / headless_virtualbox.md
Last active Apr 17, 2019
VirtualBox Headless Ubuntu/Mint
View headless_virtualbox.md

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 10.10.10.100, you will need to substitute yours where appropriate.

Software Versions Used

  • Server Side
@pjobson
pjobson / syncthing_ubuntu-mint_headless.md
Last active Aug 21, 2019
Syncthing Ubuntu/Mint Headless
View syncthing_ubuntu-mint_headless.md

Syncthing Ubuntu/Mint Headless

Syncthing: https://syncthing.net/

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
pjobson / saoc.html
Last active Feb 9, 2019
Car Search Craigslist Continental US
View saoc.html
<html>
<head>
</head>
<body>
<pre>
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>
View openwrt_notes.md

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
pjobson / dd_obs_test.sh
Created Oct 16, 2018
dd optimal blocksize detection
View dd_obs_test.sh
#!/bin/bash
#
# Copied from: https://github.com/tdg5/blog/blob/master/_includes/scripts/dd_obs_test.sh
#
# Since we're dealing with dd, abort if any errors occur
set -e
TEST_FILE=${1:-dd_obs_testfile}
TEST_FILE_EXISTS=0
if [ -e "$TEST_FILE" ]; then TEST_FILE_EXISTS=1; fi
You can’t perform that action at this time.