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
def testme | |
p = User.where("email like '%offerify.net'" ) | |
p.each_with_index {|user,i| | |
puts 'so far - ' + i.to_s + Time.now.to_s if i % 500 == 0 | |
@params = {:user_id=>user.id, :region=>Region.national.first, :partner=>$current_partner, :is_midday_subscribed=>false, :is_pr_subscribed=>false} | |
Subscription.create(@params) | |
} | |
end |
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
#!/usr/bin/ruby | |
# Pingdom_http_custom_check | |
# DFF - 2011 | |
# put this in {Apache Files}/cgi-bin/ | |
# make sure to chmod +x the file | |
# Your ruby interpreter might not be where mine is. Check the above. | |
# | |
require 'cgi' | |
too_old=360 |