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 / google_fi_ussd_codes.md
Last active Jun 3, 2019
Google Fi USSD Codes
View google_fi_ussd_codes.md

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
pjobson / getall.sh
Created May 24, 2019
Download All ShoutFactory TV
View getall.sh
#########################################
# Black Scorpion
#########################################
mkdir "Black Scorpion" && cd "Black Scorpion"
youtube-dl http://www.shoutfactorytv.com/black-scorpion/black-scorpion-s1-e1-armed-and-dangerous/5c94fbc1ce0a2957ba0c8a10
youtube-dl http://www.shoutfactorytv.com/black-scorpion/black-scorpion-s1-e2-wave-goodbye/5c94fc502121530fcfc71c5b
youtube-dl http://www.shoutfactorytv.com/black-scorpion/black-scorpion-s1-e3-blinded-by-the-light/5c94fc9bf7f3701231167854
youtube-dl http://www.shoutfactorytv.com/black-scorpion/black-scorpion-s1-e4-home-sweet-homeless/5c94fd272121530fe75bf39b
View List all figlet fonts using toilet.sh
for f in /usr/share/figlet/*
do
fs=$(basename $f)
fname=${fs%%.tlf}
toilet -f $fname $fname
done
@pjobson
pjobson / installing_kimchi_wok.md
Last active May 1, 2019
Installing Kimchi & Wok on Ubuntu or Mint
View installing_kimchi_wok.md

Installing Kimchi & Wok

I'm using Linux Mint 19.1 Tessa, this should work on Ubuntu Bionic and compatible variants.

Get Packages

wget https://kimchi-project.github.io/gingerbase/downloads/latest/ginger-base.noarch.deb
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/kimchi-2.5.0-0.noarch.deb
wget https://github.com/kimchi-project/kimchi/releases/download/2.5.0/wok-2.5.0-0.noarch.deb
@pjobson
pjobson / remove_usb_guard.md
Last active Apr 18, 2019
Remove USB Guard From Ubuntu
View remove_usb_guard.md

Remove USB Guard From Ubuntu

If you're a sucker like me and installed usbguard on a Ubuntu variant you may find that you will have access to none of your usb devices at all, because F you. The installer automatically sets up the daemon which has no rules so will just block all of your devices. Doing a basic apt remove usbguard may fail at 25%, because also F you.

My kernel is version 4.15.0-47-generic, not sure if this stopped working at some point or what.

Regain Access

sudo echo "allow id *:*" > /etc/usbguard/rules.conf
sudo sed -i 's/PresentDevicePolicy=apply-policy/PresentDevicePolicy=allow/' /etc/usbguard/usbguard-daemon.conf
@pjobson
pjobson / openwrt-on-x86_64.md
Last active Jun 26, 2019
OpenWRT on x86_64
View openwrt-on-x86_64.md

OpenWRT on x86_64

This is a very brief tutorial on getting OpenWRT installed on a regular computer, it assumes you know your way around Linux. If you find this and need additional details, please like, subscribe, and comm... oh wait this isn't youtube, just comment.

This is how I got OpenWRT going on a Mini ITX Intel DH67CF with an Intel G870 CPU with 4GB of RAM.

What You'll Need

  • 2 USB Sticks
  • Linux Live ISO
@pjobson
pjobson / screentearing.txt
Created Mar 22, 2019
Reduce Screen Tearing XFCE
View screentearing.txt
apt install composer
apt install python-pyqt5
git clone https://github.com/xircon/wm-switcher.git
./wm-switcher/wm-switcher
Set to XFCE + Composer
@pjobson
pjobson / limit_cpu.md
Created Mar 13, 2019
Limit CPU Usage Linux
View limit_cpu.md
sudo apt install cpulimit
ps aux |grep process_name
sudo cpulimit --pid ###### --limit 20 --background
@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) )
You can’t perform that action at this time.