Skip to content

Instantly share code, notes, and snippets.

View mvf's full-sized avatar

Matthias von Faber mvf

  • Black Forest, Germany
View GitHub Profile
@mvf
mvf / spotifix.c
Created July 8, 2020 15:41
Hack against Spotify going "Can't play the current song" for every song
/*
* Hack against a startup race in the Spotify linux client, which makes it go
* "Can't play the current song" for every song in >80% of runs.
*
* Compile: gcc -O2 -fPIC -shared -s -o spotifix.so spotifix.c
* Run: LD_PRELOAD=spotifix.so spotify
*
* This program is in the public domain. To the extent possible under law, the
* creator of this work has waived all copyright and related or neighboring
* rights to this work.
@mvf
mvf / void-qt5-anticrash.c
Created April 29, 2018 13:34
Hack against mislinked crashing Qt5 applications on Void Linux x86_64
/*
* Hack against mislinked crashing Qt5 applications on Void Linux x86_64. See:
*
* https://github.com/voidlinux/void-packages/issues/12328
* https://github.com/voidlinux/void-packages/issues/13161
*
* This program is in the public domain. To the extent possible under law, the
* creator of this work has waived all copyright and related or neighboring
* rights to this work.
*/