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
};
View flacSplit.sh
#!/bin/bash
# REQUIRES
# apt install cuetools shntool flac
# EXPECTS
# flacSplit.sh file.flac file.cue
flacFile=$1
cueFile=$2
@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 how-to-generate-and-use-private-keys-with-openssl-tool.md

How to Generate & Use Private Keys using OpenSSL's Command Line Tool

These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.

OpenSSL has a variety of commands that can be used to operate on private key files, some of which are specific to RSA (e.g. openssl rsa and openssl genrsa) or which have other limitations. Here we always use

@pjobson
pjobson / bash-colors.md
Created Apr 19, 2018 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.
View bash-colors.md

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@pjobson
pjobson / pre-push
Created May 8, 2018
pre-push shell script - checks to see if you want to push to master
View pre-push
#!/bin/bash
#
# Put in: ~/.git/hooks
# Make executable!
# Swiped from: https://blog.ghost.org/prevent-master-push/
protected_branch='master'
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
if [ $protected_branch = $current_branch ]
@pjobson
pjobson / preview_generator.js
Created May 30, 2018
Script for Generating MidnightFonts Previews
View preview_generator.js
#!/bin/node
// You may need to update your #!
/*
# Public Domain Mark 1.0
https://creativecommons.org/publicdomain/mark/1.0/
## No Copyright
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
View mkv-output-codec-list.csv
Constant Wrapper function Codec_ID Extension Extension alt. Python dict
MKV_A_AC3 xtr_base_c(new_codec_id, new_tid, tspec,"Dolby Digital (AC-3)"); A_AC3 ac3 'A_AC3': 'ac3'
MKV_A_EAC3 xtr_base_c(new_codec_id, new_tid, tspec,"Dolby Digital Plus (E-AC-3)"); A_EAC3 eac3 'A_EAC3': 'eac3'
A_MPEG/L* xtr_base_c(new_codec_id, new_tid, tspec,"MPEG-1 Audio Layer 2/3"); A_MPEG/L2 mp2 'A_MPEG/L2': 'mp2'
A_MPEG/L3 mp3 'A_MPEG/L3': 'mp3'
MKV_A_DTS xtr_base_c(new_codec_id, new_tid, tspec,"Digital Theater System (DTS)"); A_DTS dts 'A_DTS': 'dts'
MKV_A_PCM xtr_wav_c(new_codec_id, new_tid, tspec); A_PCM/INT/LIT wav 'A_PCM/INT/LIT': 'wav'
MKV_A_PCM_BE xtr_wav_c(new_codec_id, new_tid, tspec); A_PCM/INT/BIG wav 'A_PCM/INT/BIG': 'wav'
MKV_A_FLAC xtr_flac_c(new_codec_id, new_tid, tspec); A_FLAC flac ogg 'A_FLAC': 'flac'
MKV_A_ALAC xtr_alac_c(new_codec_id, new_tid, tspec); A_ALAC caf m4a 'A_ALAC': 'caf'
@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.

You can’t perform that action at this time.