This file contains 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
# To get a list of affected accounts | |
affected = [] | |
bad_entry_count = 0 | |
redis = Redis.current | |
Account.find_each do |account| | |
key = FeedManager.instance.key(:home, account) | |
values = redis.zrange(key, 0, -1) | |
bad = values.select { |val| val.include?('e') } | |
unless bad.empty? |
This file contains 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
DO $$ | |
DECLARE ratio float; | |
DECLARE statuses_count integer; | |
DECLARE conversations_count integer; | |
DECLARE notifications_count integer; | |
DECLARE media_attachments_count integer; | |
DECLARE oauth_access_tokens_count integer; | |
DECLARE stream_entries_count integer; | |
DECLARE favourites_count integer; | |
DECLARE mentions_count integer; |
This file contains 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
var fs = require('fs'); | |
var files = fs.readdirSync(__dirname).sort(); | |
for(var fileOn = 0; fileOn < files.length; fileOn++) { | |
if (files[fileOn].indexOf('heapsnapshot') > -1) { | |
if (isLeaking(files[fileOn])) { | |
console.log('Still leaking.'); | |
} else { | |
console.log('NOT leaking?'); |