How to get an instant answer to any question on (almost) any programming language from the command line:
$ curl cheat.sh/go/execute+ext…
$ curl cheat.sh/clojure/extern…
$ curl cheat.sh/lua/ejecutar+p…
Igor Chubin
2,948 posts
building the terminal web, one terminal at a time
Joined February 2016
- How to add weather data to your photos: $ convert 1.jpg <( curl wttr.in/Oymyakon_tqp0.… ) -geometry +50+50 -composite 2.jpg @climagic
- 🌤️ Did you know you can show live weather in Google Sheets? Use: =IMAGE("https://wttr\.in/"&B1&"_0pq.png", 4, 100, 200) (B1 = your city, like "Tokyo"). Excel 365/2021 does it too! Try this cool trick! #GoogleSheets #Excel
- Our favorite weather service has today 20k stars on GitHub. Congratulations!
- The famous latency numbers every programmer should know (originally by Jeff Dean/Peter Norvig) $ curl cheat.sh/latency
- How to check #cryptocurrency exchange rates/market caps/#btc dominance in the console using only curl $ curl rate.sx
- wttr.in one-line mode $ curl wttr\.in/Paris?format=3 Paris: 🌩 +8⁰C $ curl -s 'wttr\.in/{Barcelona,Paris,Moscow}?format=3' Barcelona: ☀️ +18⁰C Paris: 🌩 +8⁰C Moscow: ☁️ -5⁰C $ curl wttr\.in/Paris?format='%l:+%c+%t,+%w+%m' Paris: 🌩 +8⁰C, →39 km/h 🌒
- To compare weather in two cities: $ diff -Naur <(curl -s wttr.in/london) <(curl -s wttr.in/new-york) (thanks @LordBaco for the idea)
- Useful function for ~/.bashrc : how_in() { where="$1"; shift IFS=+ curl "cht\.sh/$where/$*" } and then in shell: how_in bash get length of array how_in awk print last field how_in sed remove several lines etc.
- I know that you know it, but if not: you can check historical and current crypto rates with curl: curl rate\.sx/btc@30d curl btc\.rate.sx/eth@30d curl rate\.sx/?n=100 curl rate\.sx/:help














