2019-08-25 21:33:56 +02:00
|
|
|
#RU URL SHORTENER
|
|
|
|
=================
|
|
|
|
|
|
|
|
Based on https://0x0.st/, this site allows you to easily shorten URLs using
|
|
|
|
the command line.
|
|
|
|
|
|
|
|
## USAGE
|
|
|
|
|
2019-12-17 18:41:06 +01:00
|
|
|
# Upload a file
|
|
|
|
curl -F'file=@yourfile.png' {{.RootURL}}
|
2019-11-10 19:08:05 +01:00
|
|
|
|
2019-12-17 18:41:06 +01:00
|
|
|
# Shorten a URL
|
|
|
|
curl -F'shorten=http://example.com/some/long/url' {{.RootURL}}
|
2019-09-22 13:40:33 +02:00
|
|
|
|
2019-12-17 18:41:06 +01:00
|
|
|
# The first line of the result will contain the shortened URL.
|
|
|
|
#
|
|
|
|
# In the other lines, you will find other information, including
|
|
|
|
# information on how to delete the shortened object.
|
2019-12-15 08:12:10 +01:00
|
|
|
|
2019-12-17 18:41:06 +01:00
|
|
|
# To upload a file and only extract the shortened URL (i.e. throw away the rest)
|
|
|
|
curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1
|