Compare commits
3 commits
d0154c4a40
...
272cf69de7
Author | SHA1 | Date | |
---|---|---|---|
dece | 272cf69de7 | ||
dece | 558e4a4f23 | ||
dece | 2a2c834886 |
7
README.md
Normal file
7
README.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
Gemini scripts
|
||||
==============
|
||||
|
||||
My personal collection of CGI scripts, running at `gemini://dece.space:5691/`.
|
||||
Check out `gemini://dece.space/dev/scripts.gmi` for explanations.
|
||||
|
||||
All scripts are licensed as WTFPLv2.
|
16
inbox
Executable file
16
inbox
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
|
||||
import smolcgi
|
||||
|
||||
smolcgi.require_cool_client("This script is not publicly available, sorry!")
|
||||
|
||||
if not smolcgi.query_string_dec:
|
||||
smolcgi.require_input("What's the matter?")
|
||||
|
||||
data = {"content": smolcgi.query_string_dec}
|
||||
requests.post("http://127.0.0.1:28149", data=data)
|
||||
|
||||
smolcgi.header(20, "text/plain")
|
||||
print("Input saved!")
|
Reference in a new issue