igor_chubin
You can try to run it with any command that has ANSI output, and you will see it.
As a simple alternative, you write your own 'watch' like this:
while true; do curl -s wttr.in; sleep 60; clear; done
curl --user-agant "" wttr.in?A
for that.The `A` option enforces ANSI output (curl wttr.in/:help for more)
and the curlable directory is almost there
As an interim solution, you can use this:
curl https://raw.githubusercontent.com/chubin/awesome-console-services/master/README.md curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }w() { ( IFS=+; curl wttr.in/"$*";); }
curl ga.wttr.in/limerick
and for the white background:
curl wttr.in/?I
Anyway, one can write a small filter, to cut any suspicious sequences from the output off, and add some wrapper like that to your bashrc:
curl() { [ -t 1 ] && curl "$@" | sanitize || curl "$@"; }
curl rate.sx
curl qrenco.de
and the rest from https://github.com/chubin/awesome-console-services
Now it has a lot of additional features:
* one-line output for status lines
* astronomical information
* translation to 70+ languages
* geolocation
* full fledged multilingual location search
* HTML frontend
* PNG frontend
* Slack support
* scalable architecture (it handles 10M+ queries daily for the moment of writing, with avg processing time under 30 msec)
It took one weak for the initial wego-as-a-service wrapper implementation, and more than 4 years (and 99 contributors) for the rest.
But we of course honor wego, and mention it in the README, and on each HTML page in browser
I can give a link to it to you if you want, but not here, because it will not handle the load that comes after that; just write me a mail if you want to test it.
Everybody who reads this and what to help testing the new frontend write an email to me I will share the link with you.
curl cht.sh/:styles-demo
select the best style for you, and use it in the queries.
curl cht.sh/:help
for more info.
Also, use the special client cht.sh which supports persitent configuration and many other useful features.
The high load problem is mitigated by the way, so you can try now if you want.
1. Our project is called cheat.sh and not cheat (for example xterm.js and xterm are two separated projects and xterm existed for decades before xterm.js; should they be renamed too from your point of view?);
2. We are trying to mitigate the impact by using cht.sh where possible;
3. We do not and did not ever use the name to steal, to borrow, or to somehow use popularity of cheat.
I do not see any naming conflict actually. The client/command is called cht.sh, does not even have cheat in their name.
I am a big fan of the cheat project myself, and I don't want to do any harm for it. Even more, as I said, I would prefer that we cooperate with that project.
curl cht.sh/:help
curl cht.sh/language/question for question about language
?Q to switch comments off
?T to switch syntax highlighting off
append /1 for the next question
Special client: cht.sh
It supports tab completion, and so on.You can find more examples on the project page:
https://github.com/chubin/cheat.sh
Vim integration: https://github.com/dbeniamine/cheat.sh-vim is very cool, you can make the queries (and access the results) directly from Vim.
Alternatives:
howdoi (need to be installed to be used; uses google and stackoverflow)
how2 (the same)
Cheat sheets tools: cheat (not cheat.sh; it is another project)
tldr (need to be installed).
cheat.sh provides access both to the cheat sheets and to programming language answers.Most important things:
curl cht.sh/:help
curl cht.sh/language/question for question about language
?Q to switch comments off
?T to switch syntax highlighting off
append /1 for the next question
Special client: cht.sh
It supports tab completion, and so on.You can find more examples on the project page:
https://github.com/chubin/cheat.sh
Vim integration: https://github.com/dbeniamine/cheat.sh-vim is very cool, you can make the queries (and access the results) directly from Vim.
Alternatives:
howdoi (need to be installed to be used; uses google and stackoverflow)
how2 (the same)
Cheat sheets tools: cheat (not cheat.sh; it is another project)
tldr (need to be installed).
cheat.sh provides access both to the cheat sheets and to programming language answers.