Skip to content

Instantly share code, notes, and snippets.

View stolendata's full-sized avatar

stolen data stolendata

  • Skåneland, Sweden
View GitHub Profile

The time-consuming part is not building MPV itself, but the long list of dependencies requiring a rebuild in order to fully satisfy the deployment target version. Setting MACOSX_DEPLOYMENT_TARGET in the immediate environment doesn't always propagate, resulting in target mix-ups and build failures for some dependencies. The only working solution I've found is to enforce within the formulas themselves. The following script adjusts the bulk of this:

#!/bin/sh
path='/path/to/homebrew/Library/Taps/homebrew/homebrew-core/Formula'
for dep in pkg-config makedepend autoconf automake openssl [email protected] libpng jpeg libtiff youtube-dl little-cms2 gettext libffi pcre libtool freetype fontconfig cairo pixman graphite2 icu4c harfbuzz glib libogg libvorbis flac libsamplerate libsndfile rubberband theora nasm readline sqlite gdbm xz python@2 python gobject-introspection docutils fribidi texi2html libass ffmpeg mujs mpv
do

sed -i.bu $'s/def install/def install\\n ENV["MACOSX_DEPLOYMENT_TARGET"] = "10.

Keybase proof

I hereby claim:

  • I am stolendata on github.
  • I am stolendata (https://keybase.io/stolendata) on keybase.
  • I have a public key whose fingerprint is 6C98 F920 B167 3BD7 8E9A BEBC 1122 636F 7B51 087D

To claim this, I am signing this object:

@stolendata
stolendata / firefoxramcache.md
Created December 9, 2022 19:52
Disable disk cache in Firefox

Go to the Privacy & Security configuration panel and clear all cached web content, then go to the advanced configuration panel - by entering about:config in the address bar - and change as follows:

browser.cache.disk.enablefalse

browser.cache.disk.smart_size.enabledfalse

browser.cache.disk_cache_sslfalse

browser.cache.offline.enablefalse

@stolendata
stolendata / dnssec.md
Created May 4, 2025 13:58
DNSSEC with NSD/BIND and ldns

create your zone-signing key (ZSK) and key-signing key (KSK)

ldns-keygen -a ED25519 example.com > zsk
ldns-keygen -a ED25519 -k example.com > ksk

...alternately, if you or your TLD prefer outdated key algorithms...

ldns-keygen -a RSASHA256 -b 1024 example.com > zsk
ldns-keygen -a RSASHA256 -b 2048 -k example.com > ksk