News for hackers. Stuff that matters.
Re:Show HN: Unix-like personal webpage by shellbackground on Monday July 17, 2017 @12:30PM (#14790020)
Re:Show HN: Unix-like personal webpage by tekknolagi on Monday July 17, 2017 @01:34PM (#14790660)
What is this supposed to look like? For me it was a lot of random colors.
Re:Show HN: Unix-like personal webpage by sp332 on Monday July 17, 2017 @02:02PM (#14790903)
It's a bash script. Execute it and it shows a dancing woman.

Edit: ok the bash thing is a red herring. It works if you just "cat lady".

Re:Show HN: Unix-like personal webpage by rijoja on Monday July 17, 2017 @02:25PM (#14791095)
you are right, I started out with piping it into less, to see if you are right and damn it if you are not right. I thought he did something with delays in the output. How and why does this work?
Re:Show HN: Unix-like personal webpage by idsout on Monday July 17, 2017 @02:50PM (#14791299)
ANSI escape sequences. Your terminal interprets them like move cursor to row x, column y. Set color green. Etc.

https://en.wikipedia.org/wiki/ANSI_escape_code

Re:Show HN: Unix-like personal webpage by rijoja on Tuesday July 18, 2017 @10:15AM (#14796645)
Interesting? but why does bash execute the code from standard output instead of simply displaying it to the user?
Re:Show HN: Unix-like personal webpage by sp332 on Tuesday July 18, 2017 @02:11PM (#14798759)
It's not bash. You can remove the shebang line and cat the file, and it still works. It's simply your terminal interpreting the ANSI codes and displaying the contents of the file.
Re:Show HN: Unix-like personal webpage by rijoja on Monday July 17, 2017 @02:18PM (#14791029)
well a shell command if you can excuse my nitpicking. Had it been a bash script he wouldn't only have made a really nice easter egg but also found a security hole in curl.
Re:Show HN: Unix-like personal webpage by slyzmud on Monday July 17, 2017 @07:00PM (#14792997)
Do somebody know how the images where created? I haven't found a tool that creates ascii art with that color quality.
Re:Show HN: Unix-like personal webpage by woodrowbarlow on Wednesday July 19, 2017 @10:16AM (#14804394)
or does anyone know of any other examples? i want to show this to my coworkers but this particular animation is a little lewd to be bringing into work.
Re:Show HN: Unix-like personal webpage by drannex on Monday July 17, 2017 @12:52PM (#14790277)
Now that's what I'm talking about.
Re:Show HN: Unix-like personal webpage by _lce0 on Monday July 17, 2017 @03:38PM (#14791697)
wat it just started to run.

I thought it was supposed to be piped for bash to be executed.

Are all `curl` just exposed to bash injections?

Re:Show HN: Unix-like personal webpage by chungy on Monday July 17, 2017 @04:07PM (#14791894)
Scroll up. There's no tricks here.
Re:Show HN: Unix-like personal webpage by _lce0 on Monday July 17, 2017 @04:48PM (#14792152)
So are you saying that bash is not actually executed but the characters are being printed on the screen and they looks as if the animation were still playing?

What I cannot understand from that explanation is how the animation time works. It should display the animation in chunks, with really fast frames, followed by pauses while it waits for data to be received.

Re:Show HN: Unix-like personal webpage by tdeck on Monday July 17, 2017 @10:24PM (#14793881)
Without downloading it (on my phone), I expect there are ANSI codes involved to move the cursor and control other aspects of the terminal:

https://en.wikipedia.org/wiki/ANSI_escape_code?wprov=sfla1

Re:Show HN: Unix-like personal webpage by woodrowbarlow on Monday July 17, 2017 @10:44PM (#14793946)
curl always goes to stdout if you don't redirect it. i'd guess the file is just padded so that the "animations" take longer.
Re:Show HN: Unix-like personal webpage by jwilk on Monday July 17, 2017 @04:04PM (#14791876)
No.
Re:Show HN: Unix-like personal webpage by rijoja on Monday July 17, 2017 @02:16PM (#14791003)
Impressive!