Steve Kemp's Blog Writings relating to Debian & Free Software

Pastebin site with markdown support

Sun, 16 Feb 2014 12:32:38 GMT

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

[gravitar] XenGi

Submitted at 22:17:46 on 16 February 2014

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

[gravitar] rjc

Submitted at 01:03:00 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?

[gravitar] Steve Kemp

Submitted at 08:06:40 on 17 February 2014

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.

[gravitar] rjc

Submitted at 10:02:17 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

 

Comments are closed on posts which are more than ten days old.

Spiral Logo

Search

Recent Posts

Recent Tags

Links

RSS Feed

  • Subscribe to feed