Skip to content

berbyte/share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 5, 2024
6de2e9d · Nov 5, 2024

History

14 Commits
Nov 5, 2024
Nov 5, 2024
Nov 5, 2024
Oct 31, 2024
Nov 1, 2024
Nov 5, 2024
Oct 31, 2024
Oct 31, 2024

Repository files navigation

Share

Note

A command-line tool written in Go to upload files to a Tigris bucket. If no file is provided, it reads from standard input and names the file using a timestamp. The resulting URL is copied to the clipboard.

Important

Usage

Upload a File

To upload a specific file to the bucket:

share filename.txt

Upload from Standard Input

To upload from standard input:

echo "your content here" | share

This will create a file named with the current timestamp, e.g., 1730344643.txt.

Taco Bell Programming

awk '{ print $1 }' access.log | sort | uniq -c | sort -nr | head -10 | share

Output

After uploading, the URL of the uploaded file will be copied to the clipboard, and also printed in the terminal.


Explore the docs »

View Demo · Report Bug · Request Feature


Contributors Forks Stargazers Issues Apache-2.0 license


Table of Contents
  1. About The Project
  2. Usage
  3. Getting Started
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

Share is a command-line tool that allows you to upload files to a Tigris bucket. If no file is provided, it reads from standard input and names the file using a timestamp. The resulting URL is copied to the clipboard.

Features

  • Upload files to a tigris bucket.
  • Overwrite existing files.
  • Automatically set expiration to 10 days.
  • Copy URL to the clipboard after successful upload.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Go installed (1.18+ recommended)
  • Bucket credentials with appropriate permissions.
  • Environment variables configured:
    • BUCKET_NAME
    • AWS_REGION
    • AWS_ENDPOINT_URL_S3
    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • DOMAIN

Installation

Build the Project

Clone the repository and build the project using the following commands:

git clone https://github.com/berbyte/share.git
cd share
go build -o share

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the Apache-2.0 License. See LICENSE.txt for more information.

Contact

BER Team - @berbyte - github@ber.sh

Project Link: https://github.com/berbyte/share

Acknowledgments