SkillAgentSearch skills...

Pypostbin

A simple postbin.org clone which can be run on ep.io

Install / Use

/learn @idan/Pypostbin
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pypostbin

PyPostbin is a simple postbin.org_ clone, written because I tweeted about postbin and the resulting traffic took postbin over their Google AppEngine quota. It is designed to be run on ep.io_ with a minimum of fuss.

.. _postbin.org: http://postbin.org .. _ep.io: http://ep.io

How do I use this?

  1. Clone this repository
  2. Create a virtualenv for your project. You are using virtualenv, right?
  3. Install some basic requirements using pip install -r requirements.txt. You are using pip, right?
  4. You'll need to specify a value for SECRET_KEY in settings/base.py. By default, Django concocts a random 50-character alphanumeric string for this value.
  5. run ./manage.py collectstatic.
  6. Create an app instance on ep.io, and upload this app there.
  7. There is no step 7.

How does this work?

Let's say your app instance is called "postbin", so you're hosting the app on mypostbin.ep.io. You direct a browser at http://mypostbin.ep.io and you get redirected to a blank postbin at http://mypostbin.ep.io/1/. It tells you that there are no posts yet, and that you should make a couple in order to find satisfaction in life. Heed these sage words.

So you fire up a terminal, and recite the following incantation::

curl -d "foo=bar&baz=bling" -v http://mypostbin.ep.io/1/

And voila, your POSTed data is visible when you refresh the browser.

What's the license?

BSD. See the LICENSE.txt file for the full official bits.

Is this totally ghetto?

Yes. Yes it is. This hack was written entirely between the hours of midnight and 3 A.M.

View on GitHub
GitHub Stars9
CategoryDevelopment
Updated3y ago
Forks0

Languages

Python

Security Score

55/100

Audited on Feb 25, 2023

No findings