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
};
#!/bin/bash
# REQUIRES
# apt install cuetools shntool flac
# EXPECTS
# flacSplit.sh file.flac file.cue
flacFile=$1
cueFile=$2
@pjobson
pjobson / pre-push
Created May 8, 2018 22:42
pre-push shell script - checks to see if you want to push to master
#!/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 16:50
Script for Generating MidnightFonts Previews
#!/bin/node
// You may need to update your #!
/*
# Public Domain Mark 1.0
https://creativecommons.org/publicdomain/mark/1.0/
## No Copyright
@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 / 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 / _verify-repair-permissions-disk.md
Created September 21, 2018 01:01 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

@pjobson
pjobson / clean-up-boot-partition-ubuntu.md
Created September 23, 2018 17:55 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 

OpenWRT Notes

opkg update
opkg install bash
opkg install adblock

USB Mount and fstab

opkg install kmod-fs-ext4 kmod-usb-storage usbutils mount-utils kmod-usb-storage-extras block-mount kmod-scsi-core e2fsprogs fdisk swap-utils
fdisk -l
@pjobson
pjobson / saoc.html
Last active February 9, 2019 21:10
Car Search Craigslist Continental US
<html>
<head>
</head>
<body>
<pre>
Car Search Craigslist Continental US
Min Price: <input type="text" id="minPrice" value="1500" />
Query: <input type="text" id="term" />
<input checked="checked" type="radio" name="region" value="bmore" /> Bmore Region <input type="radio" name="region" value="all" /> Contential US
<button id="btn">SEARCH</button>