https://github.com/gbafana25/cmdbin
Command line pastebin service (termbin clone)
https://github.com/gbafana25/cmdbin
c networking pastebin
Last synced: 8 months ago
JSON representation
Command line pastebin service (termbin clone)
- Host: GitHub
- URL: https://github.com/gbafana25/cmdbin
- Owner: gbafana25
- Created: 2021-05-31T03:53:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-24T03:28:23.000Z (over 4 years ago)
- Last Synced: 2025-02-25T05:15:16.328Z (over 1 year ago)
- Topics: c, networking, pastebin
- Language: C
- Homepage:
- Size: 24.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cmdbin
Command line paste bin service (termbin clone). Still work in progress.
## Usage
- To create a paste: `cat [filename] | nc [hostname] 5678`
- shortened link is returned
- To request a paste: `curl [hostname]:5678/f/[shortened_url] > [file]`
## Storing pastes
Pastes are stored in plain text in the `pastes/` folder, with the file name corresponding to its shortened link. Shortened links are generated randomly and are stored in the file `test.db`.
## TODO
- When pastes are requested in a browser, garbage characters are printed after text (fix)