Skip to content
/ 0x0 Public

curl wrapper script to upload local or remote files to 0x0.st

License

Notifications You must be signed in to change notification settings

Calinou/0x0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

0x0

Upload files from local or remote locations to 0x0.st.

Installation

The only dependency is curl, which can be installed from your distribution's repositories.

Using basher

basher install Calinou/0x0

Using this installation method, 0x0 will be immediately available in your PATH.

Manual installation

# Download the script
curl -LO https://raw.githubusercontent.com/Calinou/0x0/master/bin/0x0

# Make the script executable
chmod +x 0x0

# Move the script to a location in your PATH
sudo mv 0x0 /usr/local/bin

Usage

# Upload a local file
0x0 some_file.png

# Upload from an URL (the file won't be fetched locally).
# The URL must start with `https://` or `https://`.
0x0 https://example.com

# Upload from standard input.
# Example usage with a pipe: `tail some_file | 0x0 -`
0x0 -

If the upload is successful, the file URL will be printed to standard output.

License

Copyright © 2018-2019 Hugo Locurcio and contributors

Unless otherwise specified, files in this repository are licensed under the MIT license; see LICENSE.md for more information.

About

curl wrapper script to upload local or remote files to 0x0.st

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages