Personal terminal pastebin service. https://termbin.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
5 months ago | |
---|---|---|
.gitignore | 5 months ago | |
README.md | 5 months ago | |
fiche.service | 5 months ago | |
go.mod | 5 months ago | |
go.sum | 5 months ago | |
nginx.conf | 5 months ago | |
server.go | 5 months ago |
README.md
YANK
Personal terminal pastebin service. Termbin clone.
alias yank="nc localhost 3000"
echo "merhaba, ömürcan!" | yank
http://localhost:3000/abcd
cat file1.txt | yank
http://localhost:3000/defg
To run the server just type this command:
go run server.go
REQUIREMENTS
- Golang
- and Golang.
TODO
- create a config.toml to get host and port information.
- use basic auth for tcp connection.
- use logger instead of println.
- create a folder structure for keeping texts and serving them using nginx (or caddy?).