deraffe on Nostr: I copied a trick from some Dockerfile ages ago where you duplicate (to a file or ...
I copied a trick from some Dockerfile ages ago where you duplicate (to a file or fifo) the input (which could be coming from curl), pipe it to *sum and grep for the expected checksum.
That still splits the processing into two, but that hasn't bothered me enough (yet) to find a workaround.
I wonder if you could write a clean Python oneliner that does all this in one go... Or Perl, if you want it to be short. 😉
Published at
2024-05-09 22:03:52Event JSON
{
"id": "640f834a45facd01a9a35bf8b66b64756fe059f151764c571f0c28ae9bee806e",
"pubkey": "e1484a4961a6da355182fa44666f4906e264f6a2f703559c4511bb05d3bf648c",
"created_at": 1715292232,
"kind": 1,
"tags": [
[
"proxy",
"https://chaos.social/@deraffe/112413391759854738",
"web"
],
[
"p",
"a071462e960207a7a2272a3f59d042e59623bb2217b56f9365cba21e12213e3e"
],
[
"e",
"a203378c73adba87fd151f7254512457435944a657415275b028e4be7b5d89b8",
"",
"root"
],
[
"proxy",
"https://chaos.social/users/deraffe/statuses/112413391759854738",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://chaos.social/users/deraffe/statuses/112413391759854738",
"pink.momostr"
]
],
"content": "I copied a trick from some Dockerfile ages ago where you duplicate (to a file or fifo) the input (which could be coming from curl), pipe it to *sum and grep for the expected checksum.\nThat still splits the processing into two, but that hasn't bothered me enough (yet) to find a workaround.\n\nI wonder if you could write a clean Python oneliner that does all this in one go... Or Perl, if you want it to be short. 😉",
"sig": "ec92a7916b98c3f309557dec68305673530528faeb165918f818de6122f7eeab59c31a23f095823043c94dede53cf151a8a19c03ae3f98427c497d15f2c29d15"
}