Live data from Hacker News

Asciinema

asciinema.org

51–60 of 95 posts

Re: Asciinema

#51
post #43

I'm disappointed to see this getting so much traction when showterm.io is clearly the superior product with rewinds, custom speeds, scrolling up and down and linking to a specific point in time, and has been around so much longer. Here is an example of a longer Showterm session: http://showterm.io/a0616ce5e6f411f292e18 taken from http://www.bitfalls.com/2013/08/autofight-php-job-interview-...

asciinema is here since 2011 (although it was called ascii.io until 2 years ago).

As for rewinds, you can click on the progress bar to jump to a time you want. Also, the upcoming version of the player supports fast-forward/rewind/jump keyboard shortcuts: https://github.com/asciinema/asciinema-player/blob/next/src/...

As for the playback speed you can set speed, theme, font size etc (embedding docs say this - https://asciinema.org/docs/embedding), and you can append these options to any asciicast URL too, like this: https://asciinema.org/a/21743?speed=5&theme=solarized-dark

Looks like these are not easily discoverable from the player UI, so noting this down. Thanks for bringing this up!

Re: Asciinema

#52
post #51
post #43

I'm disappointed to see this getting so much traction when showterm.io is clearly the superior product with rewinds, custom speeds, scrolling up and down and linking to a specific point in time, and has been around so much longer. Here is an example of a longer Showterm session: http://showterm.io/a0616ce5e6f411f292e18 taken from http://www.bitfalls.com/2013/08/autofight-php-job-interview-...

asciinema is here since 2011 (although it was called ascii.io until 2 years ago). As for rewinds, you can click on the progress bar to jump to a time you want. Also, the upcoming version of the player supports fast-forward/rewind/jump keyboard shortcuts: https://github.com/asciinema/asciinema-player/blob/next/src/... As for the playback speed you can set speed, theme, font size etc (embedding docs say this - https://…

Ok, that's quite a bit of news. Thanks for clarifying, shines a new light on things.

Re: Asciinema

#53

Earlier quoted context omitted.

Would this be better if the pasted command included some checksum which was checked before piping into the `sh`? Can anyone who's better at bash than me give an example of how this could work in a relatively cross-platform way?

You would need to have a GPG signature with a well-known public key that is verified before executing the code.

Sorry, can you explain why? If the checksum is provided (as part of the sh snippet) by the website with the SSL certificate, isn't that enough reassurance?

Re: Asciinema

#54
I love script[1,2] for this sort of thing. Why wait for a video to play? Or host it on a third-party site? Having the entire session visible on a single, static page is less frustrating in most circumstances I encounter.

Having said that, Asciinema certainly looks like fun.

[1] http://unixhelp.ed.ac.uk/CGI/man-cgi?script [2] Sample session: https://tinyapps.org/blog/nix/201107170745_copy_terminal_tex...

Re: Asciinema

#55
post #12

Earlier quoted context omitted.

It's supposed to read as a portmanteau of "ASCII" and "cinema", but yeah, I can see the misreading.

Oh that makes sense, as it is quite close in spelling. I have been reading as (As-Key-Nema).

You were reading it right :) I guess I should add spelling info to the site ;)

Re: Asciinema

#56
post #16

Seriously when people will stop using that for installation.... "curl -sL https://asciinema.org/install | sh" Still a cool product!

What's wrong with that? It is SSL secured. Once you agree to install software, it had local access with your accounts privileges.

We evolved packaging systems for a reason - they provide a standardized way to manage dependencies, provide clean uninstalls, etc... Having a shellscript pooping files arbitrarily into the filesystem is so 90's.

Seriously - you pretty much just have to make a .dep and a .rpm and you're covered. Is that so hard?

Re: Asciinema

#57
post #38

Earlier quoted context omitted.

I think the bigger danger is that since you're instructing a direct pipe-to-sh over the network without regard to exit status, you're running the risk of executing truncated code that could trash your system state.

The author addresses this issue by wrapping the script [1] in {} braces: { # Prevent execution if this script was only partially downloaded # installation code here } # End of wrapping I'm not sure if this is a bulletproof solution. [1] https://asciinema.org/install

That's correct. In case bash doesn't see closing braces it will error out with "syntax error" and won't execute anything.

Re: Asciinema

#58
post #49

Earlier quoted context omitted.

What's wrong with that? It is SSL secured. Once you agree to install software, it had local access with your accounts privileges.

You won't be so happy when your https connection drops after "/" as you are piping into /bin/sh: rm -rf /$INSTALLER_TEMP_DIR

See here: https://news.ycombinator.com/item?id=9754681

Re: Asciinema

#59
I really love lolcat. It makes my day. I'm making alias and adding lolcat -f allover my bashrc files now :-)

Re: Asciinema

#60
post #16

Seriously when people will stop using that for installation.... "curl -sL https://asciinema.org/install | sh" Still a cool product!

When there will be a better alternative.
Post reply on HN