Skip to content

Instantly share code, notes, and snippets.

@robbyrussell
Created September 3, 2008 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robbyrussell/8518 to your computer and use it in GitHub Desktop.
Save robbyrussell/8518 to your computer and use it in GitHub Desktop.
curl -X POST -H 'Content-Type: application/json' -H "Accept: application/json" -d '{ "link": { "website_url": "http://github.com/robbyrussell/rubyurl" } }' http://rubyurl.com/api/links | ruby -rubygems -e 'require "json"; require "yaml"; puts JSON.parse($stdin.gets).to_yaml'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 107 100 107 0 0 527 0 --:--:-- --:--:-- --:--:-- 0
---
link:
permalink: http://rubyurl.com/G2mM
website_url: http://github.com/robbyrussell/rubyurl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment