Skip to content

Instantly share code, notes, and snippets.

@bkilshaw

bkilshaw/demo.rb Secret

Created November 27, 2016 02:04
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 bkilshaw/da3671a4fe06c859c2072829ab796ba7 to your computer and use it in GitHub Desktop.
Save bkilshaw/da3671a4fe06c859c2072829ab796ba7 to your computer and use it in GitHub Desktop.
require 'open-uri'
vendor = open 'http://api.macvendors.com/00:00:00:00:00:00'
if vendor.status[0] == "200" then
puts vendor.read
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment