Skip to content

Instantly share code, notes, and snippets.

@todrobbins
Created August 15, 2013 20:53
Show Gist options
  • Save todrobbins/6244762 to your computer and use it in GitHub Desktop.
Save todrobbins/6244762 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'stathat'
FILES = [["/opt/local/var/db/buckets.tct", "somekeyforstat1"],
["/opt/local/var/db/stats.tct", "somekeyforstat2"],
["/opt/local/var/db/users.tct", "somekeyforstat3"]]
FILES.each do |elts|
StatHat::API.post_value(elts[1], 'youruserkey', File.size(elts[0]))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment