scribble
tl;dr: take a quick note!
want to take a super quick note and forget about it? put it in here. if you note down the edit id which is shown once you can edit it afterwards, otherwise it's non-editable. no notes are shared with anyone, but if the url finds it's way into a search engine or a friends hand it's searchable and accessible.
what the hell is markdown
according to wikipedia:
markdown is a lightweight markup language with plain text formatting syntax
features
- enter just plain text. feel free to use markdown, it'll be rendered into a nice page
- edit your notes afterwards if you keep the key
- if you take a quick note on the go you can also send an email with the link to your note
get json document or plain text
add .txt
or .json
as the url extension to get either the pure plain text version or json dump of the note, so you don't have to deal with scraping and weird copy and paste issues. or have a look on the page footer.
for example:
- https://scribble.fyi/bf7072a9-4f24-4245-bfa7-f46fb4d3dd7a.txt
- https://scribble.fyi/bf7072a9-4f24-4245-bfa7-f46fb4d3dd7a.json
push from the command line
for example, with curl:
curl -H 'X-API: True' -X POST -F 'content=test' https://scribble.fyi/post
and also with line breaks:
curl -H 'X-API: True' -X POST -F $'content=# heading\nwhat\'s up?' https://scribble.fyi/post
or send a whole file (test.txt
in this case):
curl -X POST -F 'content=<test.txt' https://scribble.fyi/post
post, edit, delete from the command line
create new note:
curl -H 'X-API: True' -X POST -F 'content=test' https://scribble.fyi/post
{
"edit_id": "62e4d688580a2e9e1e169b93",
"email": null,
"post_id": "e4681ef7-a735-47be-815d-5b1d8d6d9a75",
"short_url": null,
"subject": null,
"success": true
}
edit note with nenw content:
the whole thing will be overwritten if you edit something.
curl -H 'X-API: True' -X POST -F 'content=test2' -F 'edit_id=62e4d688580a2e9e1e169b93' https://scribble.fyi/edit/e4681ef7-a735-47be-815d-5b1d8d6d9a75
{
"post_id": "e4681ef7-a735-47be-815d-5b1d8d6d9a75",
"success": true
}
curl -H 'X-API: True' -X POST -F 'content=test23' -F 'edit_id=62e4d688580a2e9e1e169b93' https://scribble.fyi/edit/e4681ef7-a735-47be-815d-5b1d8d6d9a75
{
"post_id": "e4681ef7-a735-47be-815d-5b1d8d6d9a75",
"success": true
}
make a mistake while editing, meaning entering the wrong edit_id
for example:
curl -H 'X-API: True' -X POST -F 'content=test23' -F 'edit_id=abc' https://scribble.fyi/edit/e4681ef7-a735-47be-815d-5b1d8d6d9a75
{
"data": "test23",
"message": "false or no edit id given",
"post_id": "e4681ef7-a735-47be-815d-5b1d8d6d9a75",
"success": false
}
delete a note, just post empty content:
curl -H 'X-API: True' -X POST -F 'content=' -F 'edit_id=62e4d688580a2e9e1e169b93' https://scribble.fyi/edit/e4681ef7-a735-47be-815d-5b1d8d6d9a75
{
"message": "note deleted",
"success": true
}
why is this page so ugly?
to make it fast without a lot of stylesheets and javascript. bam!
why didn't I get an e-mail?
if the e-mail server fails in the backend the process will be skipped, I'm sorry. no SLA here.
why didn't I get the shortened url back?
see e-mail section above, the same applies to shortened urls. Feel free to use any url shortener you want to if it fails.