Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View phw's full-sized avatar
💭
🇺🇦 🕊️

Philipp Wolfer phw

💭
🇺🇦 🕊️
View GitHub Profile
@phw
phw / pre-commit
Last active March 15, 2022 07:50
Picard pre-commit hook using PowerShell
#!/bin/sh
exec pwsh.exe -NoProfile -ExecutionPolicy Bypass -File ./.git/hooks/pre-commit.ps1
exit $?

For over a week now the Ukrainian people suffer from a brutal war Russia is waging on their country.

And it's Bandcamp Friday today (started at midnight Pacific time), the day on Bandcamp where they waive their revenue and the full amount goes to the artists.

So I thought this would be an opportunity to support the Ukrainian people via Bandcamp purchases.

Here are some specific albums / compilations that donate their earnings directly to humanitarian organizations supporting the people in Ukraine (please see the comments on the respective albums for details):

@phw
phw / listenbrainz-import.py
Last active May 18, 2023 00:52
ListenBrainz import
#!/usr/bin/env python
import json
from listenbrainz import ListenBrainzClient, Track
# LISTENS_EXPORT = '/home/phw/Sync/listens-outsidecontext-2020-08-10.json'
LISTENS_EXPORT = '/home/phw/Sync/output.json'
LISTENBRAINZ_TOKEN = 'YOUR-TOKEN'
@phw
phw / weblate.md
Last active April 12, 2021 17:03
Weblate

Weblate

Pro:

  • Support for translation memory, glossary, integration of machine translation services
  • Screenshots can be added to help translators properly translate strings
  • Many quality checks, configurable per string if needed
  • Completely open source
  • Can be self hosted or use free open source hosting
  • Two way sync with GitHub
@phw
phw / metadata.md
Last active March 28, 2022 14:25
Audio specs
@phw
phw / picard-ci-file-handling.md
Last active November 3, 2020 08:41
MusicBrainz Picard handling of case-insensitive file renames

The following cases of renaming files on case insensitive file systems with changes only in casing (Test.mp3 -> test.mp3) have been tested:

Test case Picard 2.5.2 Picard 2.5.1 Picard 2.5 Picard <= 2.4.4
Windows 10, NTFS Ok Ok Ok (0) Ok (0)
Windows 10, FAT32 Ok No case-only rename (1) No case-only rename (1) No case-only rename (1)
Windows 10, exFAT Ok No case-only rename (1) No case-only rename (1) No case-only rename (1)
Windows 10, SMB share on Windows Ok Ok Ok (0) Ok (0)
Windows 10,
#!/usr/bin/env python
import sys
from mutagen._riff import RiffFile
def validate_chunk(chunk, level=0):
valid = True
indent = " " * level
@phw
phw / picard-2.2-breaking-changes.md
Last active August 9, 2019 07:31
Picard 2.2 backward incompatible changes
  • Amazon cover art moved to plugin: If you have been using the Amazon cover art you will need to install the Amazon Cover Art plugin in Options > Plugins. The functionality remained the same, we just moved it to a plugin.
  • Moving files without renaming creates directory structure: Previously when you had "Move files" selected but not "Rename files" Picard would move all files to the specified target directory without any directory structure. This was not a very useful use case, so Picard 2.2 now will in these cases keep the file name but still create a directory structure according to your naming script.
  • Supported macOS version is now macOS Sierra (10.12) or higher. If you are using macOS 10.10 or 10.11 you can continue using Picard 2.1.3.

Keybase proof

I hereby claim:

  • I am phw on github.
  • I am phwolfer (https://keybase.io/phwolfer) on keybase.
  • I have a public key ASBi06QpLYGBJ2iLkwI50dKeo3DGIKb1V8Psl1ImiQniiQo

To claim this, I am signing this object:

@phw
phw / gist:4564359
Last active December 11, 2015 07:08
TEXTKING LTO Microsite
<iframe src="https://de.textking.com/affiliates/lto" width="915" height="506" frameBorder="0">
<a href="https://de.textking.com">TEXTKING</a>
</iframe>