Skip to content

Instantly share code, notes, and snippets.

View Deekor's full-sized avatar
💻

Dee Evans Deekor

💻
View GitHub Profile
@Deekor
Deekor / memkeys.rb
Last active April 20, 2020 05:59 — forked from bkimble/gist:1365005
List local memcached keys using Ruby
#!/usr/bin/env ruby
# List all keys stored in memcache.
# Credit to Graham King at http://www.darkcoding.net/software/memcached-list-all-keys/ for the original article on how to get the data from memcache in the first place.
require 'net/telnet'
headings = %w(id expires bytes cache_key)
rows = []
@Deekor
Deekor / debug_httparty_request.rb
Last active January 8, 2017 20:42 — forked from natritmeyer/debug_httparty_request.rb
How to debug HTTParty requests
class MyResource
include HTTParty
debug_output $stdout # <= will spit out all request details to the console
#...
end
# Or per request
response = HTTParty.post(url, :body => body, :debug_output => $stdout)