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 $?
@phw
phw / Move featuring from artist to title
Last active June 17, 2024 16:10
Picard scripts to move featuring
$set(_feat_regex,\\s+\\\(?\(\(?:feat\\.|featuring|with\)\\s+[^\)]+\)\\\)?)
$set(_feat,$rsearch(%artist%,%_feat_regex%))
$set(artist,$rreplace(%artist%,%_feat_regex%,))
$set(title,$if(%_feat%,%title% \(%_feat%\),%title%))