Skip to content

Instantly share code, notes, and snippets.

View JonnyJD's full-sized avatar

Johannes Dewender JonnyJD

View GitHub Profile
@JonnyJD
JonnyJD / PKGBUILD
Created March 28, 2014 13:52
Arch Linux PKGBUILD for picard-local
# $Id: PKGBUILD 87401 2013-03-31 13:44:28Z bisson $
# Maintainer: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Mateusz Herych <heniekk@gmail.com>
# Contributor: sysrq
pkgname=picard-local
_pkgname=picard
pkgver=1.2
pkgrel=1
pkgdesc='Official MusicBrainz tagger'
@JonnyJD
JonnyJD / mb_chatlogs.user.js
Last active August 29, 2015 14:02
Rassie's Chatlog scripts from http://rassie.org/mb_chatlogs.user.js with additional highlighting
// ==UserScript==
// @name MusicBrainz chatlogs
// @namespace http://dev.rassie.org
// @description Make Musicbrainz IRC logs readable
// @include http://chatlogs.musicbrainz.org/*
// ==/UserScript==
/*
* A JavaScript implementation of the RSA Data Security, Inc. MD5 Message
@JonnyJD
JonnyJD / gist:d21686a9f5569c30c934
Last active August 29, 2015 14:07
diff of 1st MB track
lowlevel:barkbands:min:0 : '8.48471315078e-16' vs '8.48070244977e-16' (0.047% err)
lowlevel:barkbands:min:2 : '3.39576302648e-16' vs '3.39454488722e-16' (0.036% err)
lowlevel:barkbands:min:3 : '2.13838086511e-16' vs '2.13694395312e-16' (0.067% err)
lowlevel:barkbands:min:4 : '1.92146777107e-15' vs '1.92123653107e-15' (0.012% err)
lowlevel:barkbands:min:10 : '3.68403004365e-15' vs '3.68365692563e-15' (0.010% err)
lowlevel:barkbands:min:17 : '8.85710419802e-15' vs '8.85614027452e-15' (0.011% err)
lowlevel:erbbands:min:1 : '1.14982703263e-13' vs '1.14938738865e-13' (0.038% err)
lowlevel:erbbands:min:2 : '6.75966119017e-13' vs '6.7586274034e-13' (0.015% err)
lowlevel:erbbands:min:3 : '1.29579474321e-12' vs '1.29536756755e-12' (0.033% err)
lowlevel:erbbands:min:5 : '8.11477534474e-12' vs '8.11233111936e-12' (0.030% err)
@JonnyJD
JonnyJD / 32bit_provided.json
Last active August 29, 2015 14:07
acousticbrainz json for 1st MB track (different builds and diffs)
{
"metadata": {
"version": {
"essentia": "2.1-beta1",
"essentia_git_sha": "v2.1_beta1-28-g21ef5f4-dirty",
"extractor": "music 1.0"
},
"audio_properties": {
"analysis_sample_rate": 44100,
"bit_rate": 0,
@JonnyJD
JonnyJD / pacman_20150809.log
Created August 9, 2015 23:19
Pacman update on 2015-08-09, breaking lib32-libx264
[2015-08-09 16:33] [ALPM] transaction started
[2015-08-09 16:33] [ALPM] removed gcc-fortran-multilib (5.1.0-5)
[2015-08-09 16:33] [ALPM] transaction completed
[2015-08-09 16:33] [PACMAN] Running 'pacman -U gcc-libs-multilib-5.2.0-1-x86_64.pkg.tar.xz binutils-2.25.1-1-x86_64.pkg.tar.xz gcc-multilib-5.2.0-1-x86_64.pkg.tar.xz lib32-gcc-libs-5.2.0-1-x86_64.pkg.tar.xz'
[2015-08-09 18:28] [ALPM] transaction started
[2015-08-09 18:28] [ALPM] upgraded lib32-gcc-libs (5.1.0-5 -> 5.2.0-1)
[2015-08-09 18:28] [ALPM] upgraded gcc-libs-multilib (5.1.0-5 -> 5.2.0-1)
[2015-08-09 18:28] [ALPM] upgraded binutils (2.25-5 -> 2.25.1-1)
[2015-08-09 18:28] [ALPM] upgraded gcc-multilib (5.1.0-5 -> 5.2.0-1)
[2015-08-09 18:29] [ALPM] transaction completed
==> Making package: lib32-libx264 148.20150725-3 (Mon Aug 10 01:20:04 CEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating x264 git repo...
Fetching origin
==> Validating source files with md5sums...
x264 ... Skipped
==> Extracting sources...
-> Creating working copy of x264 git repo...
@JonnyJD
JonnyJD / querytest.py
Created March 22, 2012 13:23
python-musicbrain-ngs ad-hoc tests
import sys
import musicbrainzngs as m
def main():
m.set_useragent("application", "0.01", "http://example.com")
#print m.get_artist_by_id("952a4205-023d-4235-897c-6fdb6f58dfaa", [])
#print m.get_label_by_id("aab2e720-bdd2-4565-afc2-460743585f16")
#print m.get_release_by_id("e94757ff-2655-4690-b369-4012beba6114")
#print m.get_release_group_by_id("9377d65d-ffd5-35d6-b64d-43f86ef9188d")
#print m.get_recording_by_id("cb4d4d70-930c-4d1a-a157-776de18be66a")
@JonnyJD
JonnyJD / contributors.sh
Created April 19, 2012 02:11
list new contributors for a git branch (given a previous list)
#!/bin/sh
aliases=(aheadley Andrew "Two Words" "<mail@example.com>")
if [ $# -gt 0 ]; then
branch=$1
else
branch=master
fi
@JonnyJD
JonnyJD / PKGBUILD
Created April 5, 2013 17:41
python2-discid-local PKGBUILD to use a local git repository as "package"
# Maintainer: Johannes Dewender arch at JonnyJD dot net
pkgname=python2-discid-local
_pkgname=discid
_python=python2
pkgver=0.2.1
pkgrel=1
pkgdesc="Python binding of Libdiscid"
arch=('any')
url="https://python-discid.readthedocs.org/"
license=('LGPL3')
@JonnyJD
JonnyJD / password_test.py
Last active December 16, 2015 11:39
A test script intended to test authentication with a non-ascii password using python-musicbrainzngs. The code is inherited from isrcsubmit.py. Only parts irrelevant for this test are taken out.
#!/usr/bin/env python
agent_name = "password_test.py"
agent_version = "0.1"
# this script doesn't submit anything (empty dict)
# so testing this on live server (with live passwords) is okay.
musicbrainz_server = "test.musicbrainz.org"
#musicbrainz_server = "musicbrainz.org"
import sys