Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
⚡Eineygður Flakkari⚡ (toiletpaper@shitposter.world)'s status on Thursday, 31-Oct-2024 10:19:30 JST⚡Eineygður Flakkari⚡ @lanodan @p @NonPlayableClown
Just for shits and giggles, this also takes a pipe. Tested and works.
perl -mJSON=encode_json -mYAML::Any=LoadFile,Load -e 'if (-t STDIN) { print encode_json LoadFile($ARGV[0]) } else { my $yml; $yml .= $_ while <>; print encode_json Load($yml) }'