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
View ScreenTreeNode.js
(function(global){
"use strict";
function constEnumPropValueDesc(v){
return {
value: v,
enumerable: true,
configurable: false,
writable: false
};
@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 / makemkvcon command line
Last active Sep 16, 2017
Convert iso movie images to mkv with MakeMKV
View makemkvcon command line
ISO to MKV
makemkvcon mkv iso:./movie.iso all .
Files to MKV
makemkvcon mkv file:/path/to/the/VIDEO_TS/ all .
View flacSplit.sh
#!/bin/bash
# REQUIRES
# apt install cuetools shntool flac
# EXPECTS
# flacSplit.sh file.flac file.cue
flacFile=$1
cueFile=$2
View git_notes.md

Rebase master into a branch.

git checkout branchName
git fetch
git rebase origin/master

Rebase a branch into a branch

git checkout branchName
git fetch
@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 / Partitioning_Notes.md
Last active Aug 16, 2018
Notes for partitioning drives.
View Partitioning_Notes.md

Error: No Partition Map Entry Error

Fixing Drives with Borked Apple Partitions

This question shows up several times in google and th answers never seemed to work properly for my purposes.

Sometimes with USB drives you get an Error: Partition map has no partition map entry! error message, there is a partition shown as Apple which can't be deleted.

One problem caused by these garbage partitions is if you attempt to create a new Linux bootable USB, dd will say it successfully copied the iso to the USB, but it doesn't actually work. The USB may even boot a bit and then hang during installation or even before it fully boots up.

@pjobson
pjobson / AP42_Debian_Linux_Install.md
Last active Jan 27, 2019
AP42 Debian/Mint/Ubuntu Linux Install Instructions
View AP42_Debian_Linux_Install.md
@pjobson
pjobson / MKVToolNix_notes.md
Created Jan 30, 2018
Notes for creating, editing, and extracting MKV files.
View MKVToolNix_notes.md

MKVToolNix Notes

Various notes for using MKVToolNix.

Probe a Video

mkvinfo lists all elements contained in an MKV container file.

mkvinfo container.mkv
You can’t perform that action at this time.