usage
examples
Send some text and read it back:
echo I Love Timbits | nc 1yr.ca 443https://1yr.ca/x7kqcurl https://1yr.ca/x7kqI Love TimbitsSend file contents:
cat ~/.ssh/id_ed25519.pub | nc 1yr.ca 443Send recent logs from an app or container:
docker logs --until 30s 4af7 | nc 1yr.ca 443requirements
There is only one requirement to use this service: netcat. To check if you already have it installed, type in terminal nc or ncat or netcat.
Netcat is available on most platforms, including Windows, macOS and Linux.
alias
To simplify usage, you can add an alias to your shell configuration.
echo 'alias pb="nc 1yr.ca 443"' >> ~/.zshrcecho 'alias pb="nc 1yr.ca 443"' >> ~/.bashrcalias --save pb="nc 1yr.ca 443"request delete
For the first 10 minutes after creating a paste, you can delete it from the same IP address by sending a DELETE request:
curl -X DELETE "https://1yr.ca/x7kq"If you need a paste removed after that time, please send a request to the email address listed below.
about
*Older links may be purged if the service reaches its allocated cache size.
usage
Create or delete a shortened URL directly from your browser:
api
Create a shortened URL with a POST request:
curl -X POST "https://1yr.ca/api/shorten" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/long/url"}'Successfully created a short url for the
requested target, cheers!
You may
use the url below:
https://1yr.ca/m3npOptionally specify a custom slug:
curl -X POST "https://1yr.ca/api/shorten" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com", "slug": "mylink"}'Successfully created a short url for the
requested target, cheers!
You may
use the url below:
https://1yr.ca/mylinkdelete
For the first 10 minutes after creating a link, you can delete it from the same IP address:
curl -X DELETE "https://1yr.ca/m3np"Successfully deleted `m3np`, cheers!about
*Older links may be purged if the service reaches its allocated cache size.