Skip to content

Instantly share code, notes, and snippets.

Avatar

John Maguire JohnMaguire

View GitHub Profile
View Music Metadata.md

Plex Music Metadata

Fetching a list of songs from my old Plex library after a hard drive failure...

Descriptive Metadata (things to look for)

  • Title
  • Performing Artist
  • Album
  • Release Date
  • Track #
View rc.lua
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
View download_anki.py
import json
import os
import re
from collections import namedtuple
from operator import attrgetter
import requests
DOWNLOAD_DIR = os.path.join(os.path.realpath(os.path.dirname(__file__)),
'downloads')
View encryption_check.sh
#!/bin/bash
encrypted_root=0
encrypted_home=0
# Determine what is mounted at / and /home
root_mount="$(findmnt --noheadings --raw --target / | awk '{ print $2 }')"
home_mount="$(findmnt --noheadings --raw --target /home | awk '{ print $2 }')"
# check if root
View keybase.md

Keybase proof

I hereby claim:

  • I am johnmaguire on github.
  • I am johnmaguire (https://keybase.io/johnmaguire) on keybase.
  • I have a public key whose fingerprint is 74E0 3311 17FC B721 C125 C430 19BE AD94 6ED2 DEE5

To claim this, I am signing this object:

View gist:1367482
>>> for key, value in audio.tags.iteritems():
... print key
...
APIC:
TLEN
TDRC
TIT2
APIC:Front cover
TRCK
TPE2
You can’t perform that action at this time.