I mean, you could probably launch nuclear missiles with a line of bash
sudo ./launch-missiles.sh --target=[REDACTED] --missile-count=4 --username=jbiden --password=1111
Make an internet radio station with one line of bash
11–20 of 55 posts
Re: Make an internet radio station with one line of bash
#12Since bash can evoke any Turing complete program, feasibly anything could be done with one line of bash.
The authors intent as I saw was to show what that line was. Would you have known without this article?
Whether or not people are just being sarcastic, I feel we should definitely not mock but rather encourage any open and free attempts at teaching us cool things that are more novel than the “how to get started on Linux” type bs the market is inundated with.
Bravo to author.
Re: Make an internet radio station with one line of bash
#13[1] https://stackoverflow.com/questions/54273291/streaming-a-str...
Re: Make an internet radio station with one line of bash
#14I think the dissenting / mocking comments here are missing the spirit of the post. Since bash can evoke any Turing complete program, feasibly anything could be done with one line of bash. The authors intent as I saw was to show what that line was. Would you have known without this article? Whether or not people are just being sarcastic, I feel we should definitely not mock but rather encourage any open and free attem…
If the author had perhaps titled their post "I wrote a multiplexing server for audio streams" it might go over better, although that doesn't have the proper click-bait appeal.
Re: Make an internet radio station with one line of bash
#15Re: Make an internet radio station with one line of bash
#16Re: Make an internet radio station with one line of bash
#17"System Bus Radio" https://github.com/fulldecent/system-bus-radio
Re: Make an internet radio station with one line of bash
#18Earlier quoted context omitted.
sudo ./launch-missiles.sh --target=[REDACTED] --missile-count=4 --username=jbiden --password=1111
I love that Biden's putting his password into ~/.bash_history
The safe way is to either read it from stdin/fd (maybe call isatty(3) to check if someone doesn't echo password | ./foo), or open a file (check if permissions are 600). You could also have a named socket (check permissions!) talking to an authn agent, which could be doing some other fancy stuff like pinging your smartwatch to confirm, etc.
Re: Make an internet radio station with one line of bash
#19I mean, you could probably launch nuclear missiles with a line of bash
Re: Make an internet radio station with one line of bash
#20 firefox https://news.ycombinator.com
But seriously, the commands in the article are not Bash commands (they don't even use Bashisms) and are valid in any POSIX-compliant shell.