Details
-
Aboutwttr.in, rate.sx, and of course cheat.sh
-
Website
-
Github
Joined devRant on 6/6/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
@ewpratten
Ok, now I know it. Thank you.
Actually it is something like "subscribed to the comments"
(devRant is cool; can't say what magic does it have, but it has something in it) -
@ewpratten
Hi! What does it mean? Does this dot have a special meaning? -
@RantSomeWhere
No, no, they will work with both.
The only difference between cheat.sh and cht.sh is that cht.sh support the experimental web shell mode I've mentioned above.
https://cht.sh/:shell/
And the second: command line client is called cht.sh (but the domain names are pointing to the same service). -
@Mathtauathogen
The problem is that because of the extreme popularity of the service (it is currently number one on github.com/trending), we are getting an enormous stream of queries, that we can't handle.
We are trying to fix the issues, but it will take some time.
As soon as the problem is fixed, you can use both cheat.sh and cht.sh (cht.sh is an alias of cht.sh).
(I've changed the error message from the ambiguous "unknown topic" to the clear "too much traffic").
I hope that the service will be back soon -
ctrl-s/ctrl-q
and you can of course always use "script" to store the output of your command for further investigation
$ script
$ your command
$ exit
or simply
script -c 'your command' -
@mee4895
Thank you! It was my first post on devrant, and I'm very glad you liked it (I mean not the post itself but everything: the services and the curl oriented approach).
(and devRant is cool. I discovered it for me a couple of weeks ago thanks to @RantSomeWhere and I'm totally fascinated with it) -
OMG, I've just reread my post. So many typos!
Sorry for that!
I think that it is already too late to fix the post, at least I didn't find any method how it could be possible.
I'm really sorry for that, that you had to use the embedded spell-checkers and correctors of your minds while reading the post. -
@Pr0methean
They are available, but without plots.
Try:
curl eur.rate.sx/100usd
curl gbp.rate.sx/100eur+200usd
to know what is 100 USD in EUR and what is 100 EUR + 200 USD in GBP.
You mean it would be great to have fiat to fiat conversion rates plots too?
The only reason (I think) that they are not so volatile and probably nobody would use it, but why not? Actually it might be the only reason why we do not have it still. And if you ask about it, then there is at least one user who could need it -
@Wack
Sure! In all cases (wttr.in, rate.sx, qrenco.de, cheat.sh) we do analyze the user agent of the query, and depending on that we generate ANSI sequences or HTML (or even PNG if needed).
For example, for PNG:
wget https://wttr.in/Berlin_0qp.png
And you will get a PNG-file with the same output as for
curl https://wttr.in/Berlin?0qp
Try it.
Even more than that: for cheat.sh we want to go even one step further and not only generate HTML output that looks like terminal output, but give a shell access to our shell client with the same name: cht.sh.
Try to open this in browser to get some impression how it will look like after we activate it for all pages (now it is only accessible via this secret URL that is known only to our developers and the devrant users):
https://cht.sh/:shell/
type there help for more. -
@Pr0methean
It is already supported actually.
Just try:
curl eur.rate.sx/btc
curl gbp.rate.sx/eth
curl chf.rate.sx/xrp
And of course you know, that you can select the time interval using the @ notation:
curl eur.rate.sx/btc@5w -
@Brosyl
As I said, the problem was on our side, we are trending on Github currently and it causes a high load on the service. But as I said, the problem was fixed, so it should work now.
Your point with the terminal is fair, it is true, that it somehow perverse to open the browser only to see how do you convert a string into an int or something like that.
Even more, the thing can be accessed directly from Vim/Emacs with a keystroke!
Write a query and press <leader>KP (in Vim) to convert it into code. That's how it looks like: -
@Brosyl
By the way, if you don't like some answer,
you can see other ones by adding /1, /2 etc to the request:
curl cht.sh/java/declare+array/1
curl cht.sh/java/declare+array/2
curl cht.sh/java/declare+array/3
Please try different requests, even completely crazy, so that you don't get the impression that my requests are hand-picked. -
@Brosyl
Very happy to hear that you are a wttr.in user!
Regarding cheat.sh:
I've just checked your requests and they look quite good.
curl cht.sh/c/run+external+program
curl cht.sh/java/declare+array
Can you please show your other requests that did not work?
We had some problems because of the high load that we are currently experiencing, but I've already fixed those problems. Maybe that was the reason why it didn't work.
Could you please retry + show your requests that do not work (if they still do not work)?