Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skywind3000/CloudClip

Your own clipboard in the cloud, copy and paste text with gist between systems !!
https://github.com/skywind3000/CloudClip

Last synced: about 2 months ago
JSON representation

Your own clipboard in the cloud, copy and paste text with gist between systems !!

Awesome Lists containing this project

README

        

# CloudClip

Your own clipboard in the cloud, copy and paste text with gist. Inspired by pbcopy/pbpaste from Mac OS X.

## Tutorial

Copy text on a remote system to the cloud:

echo "Hello, Cloud Clipboard" | cloudclip -c

Paste on a local system from the cloud:

cloudclip -p

And you will see the text coppied from the remote system:

Hello, Cloud Clipboard

Same access token and gist id must be setup before copy/paste, see below

## Installation

Clone the repository from github:

```bash
git clone https://github.com/skywind3000/CloudClip.git
```

Add repository path to your `$PATH`:

For linux, add these line at the bottom of your `.bashrc`:

export PATH="/path-to-cloud-clip:$PATH"

For Windows:

Manully setup the PATH in your control panel.

## Documentation

usage: python cloudclip.py [...]
operations:

```bash
-i [id] Initialize token and id, create a new gist if id is empty
-c [name] Takes the standard input and places it in the cloud
-p [name] Read content from cloud and output to standard output
-l List information of the gist
-e Clean the clipboard
```

A github access token is needed before everything, you can generate a new one from: https://github.com/settings/tokens

Create a new gist with "-i token" on your own PC, remember the gist id. then use "-i token id" on a remote one which you may exchange data with.

## Aliases

For convenience, two aliases can be created:

```bash
alias cloudcopy='python /path/to/cloudclip.py -c'
alias cloudpaste='python /path/to/cloudclip.py -p'
```

## Requirement

* Python 2
* [requests](http://www.python-requests.org/en/master/)

Install requests with pip:

pip install requests

## Credit

TODO