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
@pjobson
pjobson / _flash_netgear_x10.md
Last active May 10, 2024 15:54
Flashing Netgear X10 (R9000) with TFTP

Flashing Netgear X10 (R9000) with TFTP

This doc expects some experience with the commandline. If you need help, I do reply to these gists.

You should only have the router connected to your computer, unplug any other eithernet cables / disconnect from wifi.

This script is geared toward Ubuntu/Mint, though it can probably be adapted to any other distro fairly easily.

@pjobson
pjobson / glances_init.d.txt
Last active May 6, 2024 19:41
glances notes
#!/bin/sh
### BEGIN INIT INFO
# Provides: glances
# Required-Start: $network $remote_fs $syslog
# Required-Stop: $network $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start glances at boot time
# Description: Start glances at boot.
### END INIT INFO
@pjobson
pjobson / preyosemite_usb_stick_creation.md
Last active May 2, 2024 10:35
How to Create a Bootable OS X USB Stick Pre-Yosemite

Pre-Yosemite USB Stick Creation

Yosemite and later used a built in program called createinstallmedia to automagically make a USB stick. It is possible to create a bootable USB stick without this program.

You'll need an 8GB USB stick and either the Install Mac OS X Lion.app or InstallESD.dmg or BaseInstall.dmg.

Open Terminal, you'll need it in most of this tutorial.

We're going to need to start by getting to the actual installation disk image.

@pjobson
pjobson / makemkvcon_cli.md
Last active April 30, 2024 07:56
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 .
@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 / plex_media_permissions_4_noobies.md
Last active April 21, 2024 21:37
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@pjobson
pjobson / install_k9copy.txt
Created April 19, 2024 19:57
Linux Mint/Ubuntu Install K9Copy Reloaded
https://launchpad.net/~tomtomtom/+archive/ubuntu/k9copy
sudo add-apt-repository ppa:tomtomtom/k9copy
sudo apt update
sudo apt install k9copy
@pjobson
pjobson / openhab_notes.md
Last active April 4, 2024 07:42
OpenHAB on Low Power Hardware

OpenHAB on Low Power Hardware

Geared towards running on Dell Wyse 3040 ATOM CPU devices with antiX Linux with Nortek GoControl HUSBZB-1 Z-Wave and Zigbee.

The Wyse 3040 is a very basic 4 core 1.44GHz/1.92GHz (burst) Intel Atom x5-Z8350 with 2GB of RAM. Supposedly they average about 7.5 watts under normal load. They can be purchased for $35-100 on eBay (as of 2 Jan 2023). CPUMark on mine is 1,050, which is about 138 points higher than average.

Install antiX

I chose antiX as it is geared for low-end computers and it does not come with much installed on it.

@pjobson
pjobson / exfat.md
Last active March 27, 2024 00:52
Create exFat Partiion in Linux Accessible to Windows / MacOS

To create a exFat partition which is compatible with all operating systems, I recommend using a drive with under 2TB. This will allow you to use an MBR partition table instead of GPT, I've had issues mounting GPT exFat drives in Windows.
This could be partially because I don't know how to Windows anything.

List Disks

fdisk -l

Mine for example is /dev/sdl, because I have many disks.

@pjobson
pjobson / mount_qcow2.md
Last active March 26, 2024 21:05 — forked from ILMostro/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8