Sha256: 729a1406726ee78664b26632b575ddb30bb449c9df414a171b056a072bb96b43

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

#!/usr/bin/env ruby

require 'redis'

r = Redis.new
r.flushdb

255.times do |i|
  r.set("1.1.1.#{i}:950001:count", rand(1000))
  r.lpush("1.1.1.#{i}:requests", "request")
  r.sadd("1.1.1.#{i}:detected", "950001")
  if i > 220
    r.set("1.1.1.#{i}:repsheet:blacklist", "true")
  end
end

255.times do |i|
  r.lpush("2.2.2.#{i}:requests", "request")
end


20.times do |i|
  r.sadd("1.1.1.1:detected", "9900#{i + 10}")
  r.set("1.1.1.1:9900#{i + 10}:count", 1000)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
repsheet_visualizer-0.1.6 script/fill
repsheet_visualizer-0.1.5 script/fill
repsheet_visualizer-0.1.4 script/fill
repsheet_visualizer-0.1.3 script/fill
repsheet_visualizer-0.1.2 script/fill
repsheet_visualizer-0.1.2s script/fill
repsheet_visualizer-0.1.1 script/fill