Git Product home page Git Product logo

up2clipboard-cli's Introduction

English | δΈ­ζ–‡

Project Overview

Original project link: https://github.com/TransparentLC/cloud-clipboard

Cloud Clipboard can be installed using Docker:

docker pull lthero1/lthero-onlineclip:latest
docker container run -d -p 9501:9501 lthero1/lthero-onlineclip

This project extends the Cloud Clipboard project, providing CLI-based tools for uploading text and files.

The install.sh script facilitates the one-click deployment of this project.

Showcase

Download the Project

Use this command to download the project:

git clone https://github.com/lthero-big/up2clipboard-CLI.git 

Alternatively, you can download the project manually.

Navigate to the project directory:

cd ./up2clipboard-CLI

Configuration Changes

Open config.txt with vim or nano, and replace the domain URL (https://clip.yourDomain.com) with your own, such as https://clip.lthero.me.

You can customize upt and upf to your preferred names.

The modified configuration file should look like this:

upload_url=https://clip.lthero.me
bin_upt_name=upt
bin_upf_name=upf

Run the Installation Script

Grant execution permissions to install.sh, then execute it:

sudo chmod +x install.sh
sudo ./install.sh

Alternatively, you can directly execute it with:

sudo bash ./install.sh

The script will automatically install the required environment. After completion, you can use the commands below to operate the project.

Upload Files

upf somefile.txt --room RoomName
upf --room 'RoomName' somefile.txt
upf --room RoomName file*
  • file*: Supports wildcard characters
  • Does not support entire folder uploads

Upload Text

Supports various usage patterns:

upt 'Here is some text' --room RoomName
upt --room 'RoomName' 'Here is some text'
echo 'Sample text' | upt --room RoomName
cat notes.txt | upt

You can then visit https://clip.lthero.me to verify the upload success.

Modify Configuration

Open config.txt with vim or nano to replace the domain with any new one, and adjust bin_upt_name and bin_upf_name to new values as well.

After that, simply rerun install.sh to apply the new settings.

up2clipboard-cli's People

Contributors

lthero-big avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.