-
post a public paste on Ghostbin:
cat doge | ghostpaste
orghostpaste -f file.py
-
post a password protected paste:
cat doge | ghostpaste -p
ghostpaste -f file.py -p
-
post a paste that expires on Ghostbin:
cat doge | ghostpaste -e 1m
ghostpaste -f file.py -e 1m
-
post a paste that is password protcted and it expires:
cat doge | gister -pe 5s
.. code:: console
usage: ghostpaste [-h] [-f FILENAME] [-e EXPIRE] [-p]
Upload code/text files to Ghostbin.
optional arguments: -h, --help show this help message and exit -f FILENAME, --file FILENAME Input code/text file to upload -e EXPIRE, --expire EXPIRE Time to take before the text expires e.g '30µs', '10s', '1h', '15d' -p, --passwd Password for cases of encryption.
pip install ghostpaste
or clone the repo andpython setup.py install
This file is provided and it contains a list of supported languages that ghostbin has syntax highlighting for. If it isn't in the specified folder, it is downloaded and stored in the specified folder. The json might be alittle jumbled but a custom parser has been written to pass it, though it needs improvement. Prolly when i get time.