Skip to content

Instantly share code, notes, and snippets.

View JonnyJD's full-sized avatar

Johannes Dewender JonnyJD

View GitHub Profile
@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
@nickjacob
nickjacob / systemd-prblm.service
Last active March 17, 2023 16:11
execute arbitrary bash code/variable substitution in systemd units
[Unit]
Description=Demonstrate Bash
[Service]
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))"
ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}"
@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 / showrelease.py
Last active December 24, 2015 13:09
This shows a disc in a drive on musicbrainz.org
#!/usr/bin/python
# Copyright 2009-2013 Johannes Dewender ( brainz at JonnyJD.net )
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@JonnyJD
JonnyJD / Makefile
Created July 31, 2013 22:16
traversing the I/O registry on Mac OS X (iokit)
traverse_io_registry: traverse_io_registry.c
${CC} $^ -framework CoreFoundation -framework IOKit -o $@
@JonnyJD
JonnyJD / Makefile
Last active December 20, 2015 09:09
Preliminary tests to implement drutil's optical disc drive numbering in C
disc_drive_numbers: disc_drive_numbers.c
${CC} $^ -framework CoreFoundation -framework IOKit -o $@
@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')