ExFed
@ExFed@programming.dev
Migrated from lemm.ee/u/ExFed
- Comment on Is there a self-hosted project that does base64 url decoding in a privacy respecting fashion? 2 weeks ago:
The
/
character isn’t a part of the base64 encoding. In fact, only one part of the URL looks like base64. No plain base64 tool (whether via CLI, self-hosted, or otherwise) will be able to decode an entire URL like that. You’ll first need to parse the URL to isolate the base64 part. This is literally solved with a single line of bash:echo "https://link.sfchronicle.com/external/41488169.38548/aHR0cHM6Ly93d3cuaG90ZG9nYmlsbHMuY29tL2hhbWJ1cmdlci1tb2xkcy9idXJnZXItZG9nLW1vbGQ_c2lkPTY4MTNkMTljYzM0ZWJjZTE4NDA1ZGVjYSZzcz1QJnN0X3JpZD1udWxsJnV0bV9zb3VyY2U9bmV3c2xldHRlciZ1dG1fbWVkaXVtPWVtYWlsJnV0bV90ZXJtPWJyaWVmaW5nJnV0bV9jYW1wYWlnbj1zZmNfYml0ZWN1cmlvdXM/6813d19cc34ebce18405decaB7ef84e41" | cut -d/ -f6 | base64 -d
- Comment on It's on your blood! 1 month ago:
The argument you’re making sounds similar to something like “Fossil Fuels are safe, it’s just the CO2 that’s dangerous.”
I didn’t read it that way at all. Their argument sounds more like “there’s nuance that you’re glossing over.”
It seems that we all agree PFAS are generally nasty chemicals, some worse than others. Teflon (polytetrafluoroethylene) is just one of the “nicer” ones.