The coolest tricks you can do with cURL
Here is a collection of crazy things you can do with cURL.
Get weather reports
curl http://wttr.in/London
Find your external identifier (IP address etc.)
curl ipinfo.io
To get just the IP address, you can also use curl ifconfig.me
.
Get a random number
curl "https://www.random.org/integers/?num=1&min=1&max=100&col=1&base=10&format=plain&rnd=new"
prints a random number, like 50
to the console output. You can change the parameters above like min
, max
, etc, as they are self-explanatory.
Get a cheatsheet
curl https://cht.sh
returns a dashboard with available cheatsheets:
For instance, typing https://cheat.sh/ls
returns:
Generate a QR code
curl qrenco.de/12345
where 12345
is the value you want to embed in the code.
Define a word
curl dict.org/d:artificial |less
prints definition for the word “artificial”:
Get cryptocurrency rates
curl rate.sx
Watch useless animation
curl ascii.live/nyan
Have more tricks? Add below in comments ;)
To contact me, send an email anytime or leave a comment below.