Skip to content

Instantly share code, notes, and snippets.

@jsierles
Created April 21, 2009 15:34
Show Gist options
  • Select an option

  • Save jsierles/99195 to your computer and use it in GitHub Desktop.

Select an option

Save jsierles/99195 to your computer and use it in GitHub Desktop.
require 'sqlite3'
db = SQLite3::Database.new("Cache.db")
entries = db.execute 'select entry_ID,request_key from cfurl_cache_response where request_key like "http://%37assets%";'
entries.each {|e| f = File.open("/tmp/assets/#{e.last.split('/').last}", "w"); data = db.execute("select receiver_data from cfurl_cache_blob_data where entry_ID = #{e.first}"); f.write(data.first); }
ruby file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment