Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created November 27, 2016 02:12
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 havenwood/b0f17e65b25ac971e4d9022091b70f76 to your computer and use it in GitHub Desktop.
Save havenwood/b0f17e65b25ac971e4d9022091b70f76 to your computer and use it in GitHub Desktop.
@stan_man_can #ruby freenode
require 'open-uri'
open 'http://api.macvendors.com/00:00:00:00:00:00' do |vendor|
puts vendor.read if vendor.status.first == '200'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment