https://github.com/movsb/paste
A dead-simple HTTP-based cross-device text clipboard/syncer/paste bin.
https://github.com/movsb/paste
Last synced: 6 months ago
JSON representation
A dead-simple HTTP-based cross-device text clipboard/syncer/paste bin.
- Host: GitHub
- URL: https://github.com/movsb/paste
- Owner: movsb
- Created: 2021-12-26T13:51:24.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T13:59:36.000Z (almost 4 years ago)
- Last Synced: 2025-02-08T03:44:20.237Z (8 months ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paste
A dead-simple HTTP-based cross-device text clipboard/syncer/paste bin.
## Docker
```shell-session
$ docker run -d taocker/paste:latest
```## Browser
Open
from multiple browsers you can see the same thing.
They are automatically synchronized every 1 second.## Terminal
To get the content:
```shell-session
$ curl localhost:7962
```To update the content:
```shell-session
$curl -X POST localhost:7962 --data-binary @file.txt
```## Multiple Paths
Different URL path serves different content.
You can append arbitrary path to url to get a fresh new content.* localhost:7962
* localhost:7962/1
* localhost:7962/share/a.txt## How sync works
It's dead simple:
whoever sends an update request to the paste server latest wins the race.So, it's *not* an alternative to any collaborate-editing tool.
It's just for you, and me.
## Others
* If a content is not accessed within 24h, it will be removed.
* The maximum content size is 1 megabytes.
* The default port is 7962, but you can change it with `-p` flag.