Skip to content

Instantly share code, notes, and snippets.

@Freso
Freso / acousticbrainz-submit.sh
Created November 2, 2014 00:08
Script used to initiate `abzsubmit` before it was able to detect the extractor in `$PATH` and has other infancy issues. No longer needed, just uploaded for documentation and historical purpose.
#!/usr/bin/dash
cd $HOME/Development/AcousticBrainz/acousticbrainz-client
git pull
. ./venv/bin/activate
ls "$@" | parallel --eta python2 ./abzsubmit

Table of Contents

Bot editor type

Every bot owner must contact the MusicBrainz team when creating a bot editor, so that its user type can be set to Bot. This will let voters know that the edits are entered by a bot. Do not run any edits with your bot until the Bot type is set.

Edit limits

Open edits

There is a recommended limit of 2000 open edits and a hard limit of 2500 open edits per bot at the same time. Any bot which goes over the hard limit will be blocked.

Daily edits

Bots shouldn't make more than 1000 edits (be it normal edits or autoedits) per day - that allows users that want to check them all to do so.

Freso's Fallout 4 mods list

Document for compiling mods (and other related things) I use/want to use when/for playing Fallout 4.

Utlities

Utility Description

Keybase proof

I hereby claim:

  • I am freso on github.
  • I am freso (https://keybase.io/freso) on keybase.
  • I have a public key ASDd5z0X5E3Kr7NVNr3s2EZhKPPIrkZd_PVs25pB2m3oawo

To claim this, I am signing this object:

Open data on my Brain(z): community powered open data

Open data is often talked about in the context of data generated by some governmental institution which is then released and refined by volunteers and/or other actors. But open data can also be crowd sourced and community edited, built bottom up rather than top down.

The MetaBrainz Foundation is "a non-profit that believes in free, open access to data" and hosts a number of community maintained open data databases: MusicBrainz, ListenBrainz, AcousticBrainz, CritiqueBrainz, Cover Art Archive, MessyBrainz, and BookBrainz.

This talk will discuss open data and give a brief introduction to each of the MetaBrainz projects in the context of open data and how to get involved with contributing to and using them.


#!/usr/bin/env python3
#
# Copyright © 2017 Frederik “Freso” S. Olesen <https://freso.dk/>
#
# 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,
{"status": "ok", "results": [{"recordings": [{"releasegroups": [{"id": "425771a3-31a4-4dc2-9dee-f2993611b44b"}, {"id": "9e585041-f2c1-3f0d-be40-40c845a3323f"}, {"id": "ddaa2d4d-314e-3e7c-b1d0-f6d207f5aa2f"}], "id": "cd2e7c47-16f5-46c6-a37c-a1eb7bf599ff"}], "score": 1.0, "id": "9ff43b6a-4f16-427c-93c2-92307ca505e0"}]}
@Freso
Freso / compare-genres.py
Created September 30, 2019 17:50
Compares genres known to/available in MusicBrainz vs. beets
#!/usr/bin/env python3
"""
"""
import requests
def get_musicbrainz_genres():
# MB genres:
# https://github.com/metabrainz/musicbrainz-server/raw/master/entities.json
genre_url = 'https://github.com/metabrainz/musicbrainz-server/raw/master/entities.json'
@Freso
Freso / picketline-filter.txt
Last active March 1, 2022 22:33
Adblock filter (use with uBlock or other adblocker of your choice) to prevent crossing virtual picket lines
! Title: GMG Union strike filter
! Expires: 2 days
! Description: Filter for adblockers to help with not crossing picket lines
! Homepage: https://gist.github.com/Freso/9d30c62c43615e3a7b5ce5fcb56f4a3a
! Licence: https://creativecommons.org/publicdomain/zero/1.0/
! GMG Union strike as of 2022-03-01
! https://twitter.com/gmgunion/status/1498661232030666752
||gizmodo.com^
||jalopnik.com^