About Archive Tags RSS Feed

 

Pastebin site with markdown support

16 February 2014 21:50

Today I setup a new website:

Something I want, something I'll use, and something that might be useful to others?

| 4 comments

 

Comments on this entry

icon XenGi at 22:17 on 16 February 2014
http://xengi.de/

Thx. That looks nice and I will probably use this quite often.

icon rjc at 01:03 on 17 February 2014

Hi Steve,

That's a great idea!

Doesn't seem to be working for me though :^(

When running:

$ curl -H "Accept: application/json" -X POST -F "text=<test.md" http://markdownshare.com/create/
{"link":"http://"http://markdownshare.com/view/1O"," delete":"http://markdownshare.com/delete/d7405321f34c214d113f08f4db18e257","id":"1O"}

Entry number 10 is obviously not the one as it existed (and other ones up to and including 19) prior to me trying to post it.

Could you shed some light on it, please?

icon Steve Kemp at 08:06 on 17 February 2014
http://www.steve.org.uk/

Looks like your curl worked to me, did you mistake the number zero for the letter "o"?

http://markdownshare.com/view/1O looks like yours - or at least not one of my early tests.

icon rjc at 10:02 on 17 February 2014

Ha!

Yes, I did!

On the terminal which I had used `O` looks like `0`, and I made the (wrong!) assumption that IDs are simply consecutive numbers (decimal or probably even hex), so rather than copying the link, I have used a previous link in the address bar simply substituting the ID part.

Thanks for clarifying.

Best regards,

rjc