Skip to content

Instantly share code, notes, and snippets.

@andersondanilo
andersondanilo / instructions.md
Last active November 18, 2023 08:35
ms2109 linux (MacroSilicon USB Video)

Play

ffplay -f video4linux2 -framerate 60 -video_size 1920x1080 -input_format mjpeg /dev/video2

You can try other video number (video3, video4)

Maybe you need:

Create: /etc/udev/rules.d/91-hdmi-to-usb-ms2109.rules With:

@creachadair
creachadair / binary-cookies.md
Last active November 7, 2023 16:21
macOS Binary cookies file format

Binary cookies file format

Browsers and other macOS applications use the NSHTTPCookieStorage API to store cookies. The API writes .binarycookies files in a specialized binary format. The binary file format has the following structure:

Bytes Format Description
4 text magic number ('cook')
4 uint32 BE page count (np)
*4 [i] uint32 BE page i data size S, bytes; *repeat np times
*S [i] bytes page i contents; *repeat np times