https://github.com/lucko/paste-netcat
Upload content to pastes.dev using netcat
https://github.com/lucko/paste-netcat
Last synced: about 1 year ago
JSON representation
Upload content to pastes.dev using netcat
- Host: GitHub
- URL: https://github.com/lucko/paste-netcat
- Owner: lucko
- License: mit
- Created: 2022-01-18T20:08:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-01T20:46:52.000Z (about 4 years ago)
- Last Synced: 2025-05-05T05:35:06.476Z (about 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# paste-netcat
Allows you to upload content to [paste](https://github.com/lucko/paste) (and [bytebin](https://github.com/lucko/bytebin)) using netcat.
## Example
#### Start an instance of paste-netcat with Docker
```shell
> git clone https://github.com/lucko/paste-netcat
> cd paste-netcat
> vi docker-compose.yml # edit the config
> docker compose up -d
```
#### Upload content
```shell
# pipe in some output from any command
> echo "Hello world" | nc localhost 3000
https://pastes.dev/aaaaa
# upload the contents of a file
> cat some_file.txt | nc localhost 3000
https://pastes.dev/bbbbb
# read back the contents
> curl https://pastes.dev/aaaaa
Hello world
```
### About
Written in Go, licensed MIT, have fun. :)