Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am themaxdavitt on github.
  • I am themaxdavitt (https://keybase.io/themaxdavitt) on keybase.
  • I have a public key ASBwtK-rHJOfAaWd8yYjibeLsPQw3ttHrEhOSPlo27vyIAo

To claim this, I am signing this object:

BEGIN MESSAGE.
SUMz4blU4oNWqqI d6QyVlEhjP97tMe 0UUKnRWLl3NCH2T MvpZTlHvDApMZW7
CJShiS3wMtlZBQv PGhShG95g0yTCKq 6Xr2MZHgg6tGcSB vH1ur5iLbcMuIBK
oWrYsFwy9CcD4Fk 1xXXzWTNiDrAH2Y fUDNi13iZcIhFCf pDAiZmaNlVi8kMK
xE4EuQgiiAO2xR0 914L64ttnPmQDZU OXcWN2BwlTVlNtt .
END MESSAGE.
// Max Davitt - https://max.davitt.me
// Released under CC0 1.0 Universal
// https://creativecommons.org/publicdomain/zero/1.0/
const { createHash } = require('crypto');
const readFile = require('util').promisify(require('fs').readFile);
(async () => {
if (process.argv.length < 3) {
@themaxdavitt
themaxdavitt / gist:05f62a59e6e0426f26f8b02d73ae0e32
Last active January 21, 2025 23:40
FFmpeg command to play silent audio to fix Bluetooth headphones cutting off sounds (e.g. in Anki) (https://max.davitt.me/blog/fix-sounds-cut-off-over-bluetooth/)
ffplay -nodisp -f lavfi -i anullsrc=r=44100:cl=stereo