ozcanyarimdunya / sahibin

Sahibin is an online platform that allows users to store and share plain text snippets or code snippets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sahibin

Sahibin is an online platform that allows users to store and share plain text snippets or code snippets. It provides a simple interface where users can paste their text and generate a unique URL for the paste. The generated URL can then be shared with others for viewing or collaboration.

Install & Run locally

Webserver (backend)

Installation

$ make install-webserver

Running

$ make run-webserver

Webui (frontend)

Installation

$ make install-webui

Running

$ make run-webui

Deployment

Docker

make update version=x.x.x
make run-docker

Check this link http://localhost:8000/.

CLI

Installation

$ sudo curl -k http://0.0.0.0:8000/sahibin -o /usr/local/bin/sahibin
$ sudo chmod +x /usr/local/bin/sahibin

Create a new paste by providing content directly.

$ sahibin "Hello, my name is $(whoami)!"
http://0.0.0.0:8000/share/abc123

Create a new paste by providing content via stdin.

$ cat /tmp/test.txt | sahibin
http://0.0.0.0:8000/share/xyz321

Create a new paste by providing expire days.

$ sahibin -e 10 'Expire in 10 days'
http://0.0.0.0:8000/share/xyz321

Create a new paste by providing title.

$ sahibin -t 'simple title'
http://0.0.0.0:8000/share/xyz321

Screenshots

Home Page Share Page
img.png img_1.png
History Page Sahibin CLI
img_2.png img_3.png

@ozcanyarimdunya

About

Sahibin is an online platform that allows users to store and share plain text snippets or code snippets.


Languages

Language:Vue 70.0%Language:Python 14.8%Language:JavaScript 8.4%Language:SCSS 3.5%Language:Dockerfile 1.4%Language:Makefile 1.3%Language:HTML 0.5%