Remix.run Logo
friedtofu 8 hours ago

Hey HN! Check out this vibe-coded shell script that Claude Opus one-shot that does the same thing(Pretty CrAzY!!!).

This is a fish shell function but you can probably get claude code to convert it to bash or zsh

  function STFU

         #alsa records incoming audio from the default input device for 2 seconds

         arecord --duration 2 echo.wav

         #alsa plays back the echo.wav of the recorded audio file

         aplay echo.wav

         #Ctrl+C when the target looks your way!!!
  end

  STFU
Guess I should create a git repo for this now and add an MIT license like OP, amirite?

(Yes this is post is entirely sarcasm, except that I do use fish as my default shell.)