Skip to content

staff0rd/pastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pastebin

Send your text to pastebin at the commandline with docker

usage

Use the image directly from docker, here's some examples:

docker run -it staff0rd/pastebin -k <devKey> "paste this text to pastebin!"

docker run -it staff0rd/pastebin --help # get help

cat myfile.log | docker run -i staff0rd/pastebin -k <devKey> -j <userKey> -t "Contents of myfile.log" # push the contents of myfile.log at pastebin under your user

cat myfile.log | docker run -i staff0rd/pastebin -k <devKey> # push the contents of myfile.log at pastebin as a guest post

docker run -it staff0rd/pastebin -k <devKey> -u <userName> --password <password> # get a userkey to use above

develop

cd src

# restore composer packages
docker run --rm -it -cv $PWD:/app composer install # linux
docker run --rm -it -v %cd%:/app composer install # windows

# run
docker run --rm -it -v $PWD:/app -w /app php:cli php pastebin.php # linux
docker run --rm -it -v %cd%:/app -w /app php:cli php pastebin.php # windows

build

To build the stand-alone docker image:

docker build -t staff0rd/pastebin .

About

Send your text to pastebin at the commandline with docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published