News for hackers. Stuff that matters.
Re:A curl cheat sheet by coderholic on Thursday September 17, 2015 @10:39PM (#10237247)
Not strictly a curl hack, but you can quickly get your IP geolocation details with curl and http://ipinfo.io (full disclosure, it's my service):

  $ curl ipinfo.io
  {
    "ip": "208.54.39.206",
    "hostname": "mce2736d0.tmodns.net",
    "city": "Los Angeles",
    "region": "California",
    "country": "US",
    "loc": "34.0522,-118.2437",
    "org": "AS21928 T-Mobile USA, Inc.",
    "postal": "90013",
    "phone": 213
  }
  
Or just your IP

  $ curl ipinfo.io/ip
  208.54.39.206
  
Or any other field (eg. city)

  $ curl ipinfo.io/city
  Los Angeles
  
Or lookup another IP

  $ curl ipinfo.io/8.8.8.8
  {
    "ip": "8.8.8.8",
    "hostname": "google-public-dns-a.google.com",
    "city": "Mountain View",
    "region": "California",
    "country": "US",
    "loc": "37.3860,-122.0838",
    "org": "AS15169 Google Inc.",
    "postal": "94040",
    "phone": 650
  }
Or a specific field for that IP:

  $ curl ipinfo.io/8.8.8.8/org
  AS15169 Google Inc.
Re:A curl cheat sheet by dfc on Thursday September 17, 2015 @10:56PM (#10237277)
If you start a comment out with "not strictly [related to linked article]" and hijack the discussion by plugging a website it seems like the decent thing to do is mention that you are the developer behind said website. I think this is even more important when you include so much <pre> text that the other comments are pushed so far down the page.

Full-Disclosure: Some people still believe in it

Re:A curl cheat sheet by coderholic on Thursday September 17, 2015 @11:18PM (#10237328)
Thanks for the tip. I've updated the comment to add the disclosure. Definitely not my intention to hide it though, it's clearly listed in my profile.
Re:A curl cheat sheet by sigma2015 on Friday September 18, 2015 @07:20AM (#10238520)
> the decent thing to do is mention that you are the developer behind said website

or just use a fake account ... like anybody else :D

Re:A curl cheat sheet by krat0sprakhar on Thursday September 17, 2015 @11:25PM (#10237349)
I can't probably count how many times I use this in a week. Thank you very much for this service :)
Re:A curl cheat sheet by keithpeter on Friday September 18, 2015 @04:07AM (#10238021)
And I've just spent a bit of time playing with this service. I think that authors should be proud of their work and claim credit up front on HN.
Re:A curl cheat sheet by mahouse on Friday September 18, 2015 @09:03AM (#10238907)
Regardless how good your service could be, this is completely unrelated to the article.