Skip to content

Instantly share code, notes, and snippets.

View smacfarlane's full-sized avatar

Scott Macfarlane smacfarlane

  • Seattle, Washington
View GitHub Profile
@smacfarlane
smacfarlane / gdal_translate.rb
Created December 9, 2016 16:44
Inspec Custom Matcher
require 'net/http'
require 'fileutils'
class GdalTranslate < Inspec.resource(1)
name 'gdal_translate'
def initialize(remote_file)
uri = URI.parse(remote_file)
@response = Net::HTTP.get(uri)
@filename = File.basename(uri.path)

Keybase proof

I hereby claim:

  • I am smacfarlane on github.
  • I am smacfarlane (https://keybase.io/smacfarlane) on keybase.
  • I have a public key ASCNWRXx-KVdj-7OaXCG2V4FYZS4FWBrCIUa-uTV1Ay23Qo

To claim this, I am signing this object: