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 20, 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

Install Latest OpenWRT

@pjobson
pjobson / clover_boot_flags.md
Last active Oct 17, 2019
Clover Boot Flags
View clover_boot_flags.md

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
pjobson / remove_mcafee.md
Last active Oct 15, 2019
OSX McAfee Removal
View remove_mcafee.md

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.

View FFMPEG_Notes.md

Some Recipies for ffmpeg Usage

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

SUBTITLES

Convert

ffmpeg -i blah.vtt blah.srt
for i in *.vtt ; do ffmpeg -i "$i" "$i.srt" ; done
@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 / 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
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 / 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 / Unbrick_Buffalo_WZR-HP-G300NH.md
Last active Aug 12, 2019
How to Unbrick the Buffalo WZR-HP-G300NH
View Unbrick_Buffalo_WZR-HP-G300NH.md

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
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
You can’t perform that action at this time.