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 / openwrt_nanopi_r1.md
Last active Oct 19, 2019
Notes for OpenWRT on NanoPi R1
View openwrt_nanopi_r1.md

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.

Links

Boot From Serial

View youtube-dl.help.txt
Usage: youtube-dl [OPTIONS] URL [URL...]
Options:
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
pjobson / google_fi_ussd_codes.md
Last active Sep 6, 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
Last active Jul 18, 2019
Reduce Screen Tearing XFCE
View screentearing.txt
sudo apt install composer python-pyqt5 git
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
You can’t perform that action at this time.