Live data from Hacker News

Show HN: Curl https://ec2.shop

ec2.shop

71–80 of 84 posts

Re: Show HN: Curl https://ec2.shop

#71
post #55

Earlier quoted context omitted.

There should be a new mime type for this: text/x-ansi

but why "ansi"? ANSI is only an encoding. You can have html that's in ansi, and you can have something like OP's that's not in ansi (eg. if you add emojis).

You might be thinking of ASCII?

Re: Show HN: Curl https://ec2.shop

#72
post #57
post #7

Earlier quoted context omitted.

For HTTPS to truly be meaningful we need to stop supporting HTTP as an on-ramp, to prevent people from just hijacking that initial unencrypted connection and sending anything they want.

(speaking only for myself, not my employer) I truly do not care if someone goes through the effort to MITM my curl of ec2.shop to inject fake prices or something like that. There's nothing here that's going to be executed, it'll just be printed or grepped. In theory you could exploit a 0 day in curl or my terminal or something like that, but I think if you truly think about the risks and tradeoffs here it's really no…

> There's nothing here that's going to be executed

... yet.

Imagine someone using it to find "the biggest size available under $1" and then taking that value to execute some other script.

Re: Show HN: Curl https://ec2.shop

#73
Neat, didn't realize how much the options for ec2 have grown over time. Can those instances with 100Gbps networking actually push that to upstream transit (ie. the Internet)? Or is that mostly for internal network communication between instances and other AWS services?

Re: Show HN: Curl https://ec2.shop

#74
post #55

Earlier quoted context omitted.

but why "ansi"? ANSI is only an encoding. You can have html that's in ansi, and you can have something like OP's that's not in ansi (eg. if you add emojis).

You might be thinking of ASCII?

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

Re: Show HN: Curl https://ec2.shop

#75
post #16
post #12

Color output seems to be tuned for dark terminal backgrounds. Memory, vCPUs, and Storage are nearly unreadable on a white background.

Sounds like you played a stupid game and won a stupid prize.

Could you please read and follow the site guidelines? https://news.ycombinator.com/newsguidelines.html

We're hoping to have a different sort of discussion than internet default here.

Re: Show HN: Curl https://ec2.shop

#76
post #25

Earlier quoted context omitted.

Can you link me to a way to use colours that change with the terminal colour preset? I haven't come across anything like that or maybe didn't pay attention. It would be really helpful You said you can't even set an env variable to change them so I assume that there is an even better way?

On Linux, in X, you can use xresources. Otherwise there's termcap

totally forgot about xresources! thanks for the reminder

Re: Show HN: Curl https://ec2.shop

#77
post #31
post #25

Earlier quoted context omitted.

Can you link me to a way to use colours that change with the terminal colour preset? I haven't come across anything like that or maybe didn't pay attention. It would be really helpful You said you can't even set an env variable to change them so I assume that there is an even better way?

Wikipedia has a good section on the different methods of describing colour: https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit I've got some Go code that you can reuse if you want to the escape codes in Go: https://github.com/lmorg/murex/blob/master/utils/ansi/codes.... Just bare in mind that any numbers you see in documentation are sent as ASCII values rather than integers. eg `ESC[31m` (red text) should be sent…

Thanks for the explanation and the snippets ^^

Re: Show HN: Curl https://ec2.shop

#78
post #74

Earlier quoted context omitted.

You might be thinking of ASCII?

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

From the wiki: "The phrase ANSI character set has no well-defined meaning and has been used to refer to the following, among other things"

So if you are thinking of CP-437 or Windows-1252 I suppose that's fair, but generally in the context of terminal apps "ANSI" without qualification refers to the escape sequences.

Now I am curious though, did ANSI the standards body have any official character encoding standards?

Post reply on HN