šŸ’¾ Archived View for splint.rs ā€ŗ fun_commands.gmi captured on 2024-07-08 at 23:58:50. Gemini links have been rewritten to link to archived content

View Raw

More Information

ā¬…ļø Previous capture (2024-05-26)

šŸš§ View Differences

-=-=-=-=-=-=-

"Fun Terminal APIs"

These are some commands you can do from any Linux terminal. They all run through someone elseā€™s server, so any information you send will be visible to the owner.

Get the Current Weather

curl wttr.in

Itā€™s best to open the terminal full-screen here to see the full result.

You can also do a city. For some reason, the default ā€˜Glasgowā€™ is somehwere in America, so I have to look up the real Glasgow by suffixing a tilda.

curl wttr.in/Glasgow~

You can get a specific city with a space in it like this:

curl wttr.in/San+Fransisco

Or even get the current moon phase:

curl wttr.in/moon

Send a File

Send a small file, and get a URL to it.

curl -F"file=@[ your file ]ā€ [a]

[a]

Stick this in your .bashrc for easier use:

        curl -F"file=@$1" https://ttm.sh
    }

Now you can do sendfile myfile.md, and get the URL back instantly.

Post text and get a URL

echo ā€˜random messageā€™ | ncat termbin.com 9999

Quick Cheat Sheet

curl cht.sh/htop

This returns a tldr on htop.

Corona Stats

curl [a] Country ]

[a]

For countries with a space, use %20, e.g.

curl [a]

[a]

Get Info on an IP

Look up location info about an IP address.

curl [a]

[a]

Get a Definition

Get a wordā€™s definition:

curl dict://dict.org/define:[ word ]:

You can add it to your .bashrc like this:

    curl dict://dict.org/define:$1:
    }

Then get a definition simply by typing wotsa kobold.

Stock Prices

Get current stock prices.

curl -L stonks.icu/btc

You can add multiple stocks by simply appending them, e.g. stonks.icu/btc/amd.

And of courseā€¦

telnet towel.blinkenlights.nl