2019-09-15 19:51:54 +02:00
|
|
|
{{define "body"}}
|
|
|
|
<pre>
|
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-09-22 14:03:27 +02:00
|
|
|
# Upload a file
|
|
|
|
curl -F'file=@yourfile.png' <a href="{{Request.Host}}">{{Request.Host}}</a>
|
|
|
|
|
2019-08-25 21:33:56 +02:00
|
|
|
# Shorten a URL
|
2019-09-22 13:40:33 +02:00
|
|
|
curl -F'shorten=http://example.com/some/long/url' <a href="{{Request.Host}}">{{Request.Host}}</a>
|
|
|
|
|
|
|
|
# Shorten a URL with a token to delete it later
|
|
|
|
curl -F'shorten=http://example.com/some/long/url' -F'deleteToken=' <a href="{{Request.Host}}">{{Request.Host}}</a>
|
2019-09-15 19:51:54 +02:00
|
|
|
</pre>
|
|
|
|
{{end}}
|