Created
April 21, 2009 15:34
-
-
Save jsierles/99195 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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