TIL Macs come with a command line base64 decoder. Somehow Mail failed to recognize that an attachment was an attachment so I copy/pasted a giant wall of base64 into that to get the expected PDF back out.

Follow

Also that it's a lot faster to paste ~1MB of text into a text editor and save that someplace reasonable than it is to paste that same text into Terminal. I gave up waiting on that and assume I might have run into some kind of maximum line length in the shell had I kept waiting for that to finish.

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Typica Social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!