Show HN: ASCII Animals in Your Terminal
ivolo.me
ivolo.me
curl -s [url] | sh
Please don't train people to do that.I mean, cool idea, I guess... but I don't think I'd ever execute it as documented on a machine I own. Sorry!
Then I came here to see if anyone else had.
curl http://npmjs.org/install.sh | sudo shWhy?
Because people want to see a "doodle" or some other silly graphic.
Truthfully, it's gotten worse: "Please enable Javascript." "You need to enable Javascript to use this website." (9 times out of 10, that's a lie.)
In the 1980's, it was telling people to run some ANSI codes through printf to see a blinking Christmas Tree.
Your shell isn't.
(People are working on it though, see for example http://berrange.com/posts/2012/01/17/building-application-sa...)
Because I know the shell and my OS better than I know a "modern browser".
"People are working on it..."
C'mon, man. This sounds pathetic. You can learn to use the shell safely. How do you think sysadmins do their jobs?
Or you can pretend the shell is too difficult and something to be feared. The simple fact is _you_ control the shell. You don't expose it to the world (unless you're playing games with CGI or doing like the OP said: feeding it random bytes from the internet). You can read the code for a basic shell (e.g. rc, sh, dash). You can modify and compile it yourself. You can write your own. CS students routinely write their own shells as part of the curriculum. A "shell" is something relatively simple.
You really think you're ridiculously complex "modern browser" is "safe"? Safer than your shell?
http://www.youtube.com/watch?v=c8cQ0yU89sk
When your use the shell, you trust the people who provide your OS's kernel, the compiler, libraries and userland and those 3d party applications, if any, you choose to run. That's already a lot of people and a lot of code. When you use a "modern browser" who do you trust? I can't even begin to quantify it.
As a very well respected cryptographer once wrote, security may be less a matter of reducing privilege than of reducing the amount of trusted code. The only reason you even have a concet of "privilege" is because it's a relic of shared computing. Everyone has their own computer now. There's no such thing as "root" in Plan 9.
Compare the LOC in a basic shell with the LOC in your web browser.
And it's not even over https.
But SRSLY?!!!!!!!
How does RVM work? By throwing a shit-ton of hooks into your shell environment.
That shit right there made me put the brakes on and try to grok the hell out of what the tool did right there.
Upshot: it's useful and seems to do what it promises. Still bugs the crap out of me though.
The animated ASCII stuff? "nobody" account on a VM.
telnet towel.blinkenlights.nl
(can't believe this is still up after all these years)which apparently are all borrowed from here: http://www.heartnsoul.com/ascii_art/ascii_animals_indx.htm
$ apt-get install sl
$ /usr/games/slIt's a fun, masochistic joke, but I seriously encourage everyone to install it (it's available on Homebrew, if you're an OS X user). Every time you do an `sl` you must immediately resolve to be more careful when doing things on terminal. It `ls` is harmless, but what if it was `rm`?
[1]: I think it was this one: http://thesteve.org/up/elephant.txt
http://mattsears.com/articles/2011/11/16/nyan-cat-rspec-form...
He makes the tests slower, but I still have him check my entire suite of specs at least once a day.