Skip to content

Instantly share code, notes, and snippets.

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

Paul Jobson pjobson

:shipit:
p̰͍͖̄̀ͬ̒̎̅a̲͚̯̱̺͗̿̓̆͊̀͌ǘ̳̹͙͔̘̈ͭ̋̒ͭ̋lͫ̔ͯ̂ ͎͖͍̤ͣͧ̀ͨj̾o̹̗͍̲̽ͥ́̊͐b̪ͬͪͫ̂s̙̫͕̼̭͛̍̔on̽
View GitHub Profile
(function(global){
"use strict";
function constEnumPropValueDesc(v){
return {
value: v,
enumerable: true,
configurable: false,
writable: false
};
@pjobson
pjobson / remove_mcafee.md
Last active March 26, 2024 04:26
OSX McAfee Removal

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.

@pjobson
pjobson / FFMPEG_Notes.md
Last active April 24, 2024 05:00
FFMPEG Notes

Some Recipies for ffmpeg Usage

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

Cropping

You need 4 variables:

  • W - Width of Output Video
  • H - Height of Output Video
@pjobson
pjobson / makemkvcon_cli.md
Last active April 23, 2024 19:18
Make MKV Command Line Examples (makemkvcon)

https://www.makemkv.com/

https://www.makemkv.com/developers/usage.txt

Note: I'm not sure how well this works / doesn't work in Windows, I have little experience messing with it. If you are not very familiar with Linux, . refers to the current path, you could also specify a path like ~/Videos for your Videos path in your home directory.

ISO to MKV

makemkvcon mkv iso:./movie.iso all .
#!/bin/bash
# REQUIRES
# apt install cuetools shntool flac
# EXPECTS
# flacSplit.sh file.flac file.cue
flacFile=$1
cueFile=$2
@pjobson
pjobson / git_notes.md
Last active July 26, 2018 15:30
git notes

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 May 7, 2023 07:14
How to Unbrick the Buffalo WZR-HP-G300NH

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 August 16, 2018 22:11
Notes for partitioning drives.

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 October 28, 2019 06:24
AP42 Debian/Mint/Ubuntu Linux Install Instructions
@pjobson
pjobson / MKVToolNix_notes.md
Last active January 31, 2023 13:06
Notes for creating, editing, and extracting MKV files.

MKVToolNix Notes

Various notes for using MKVToolNix.

Probe a Video

mkvinfo lists all elements contained in an MKV container file.

mkvinfo container.mkv