Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Created December 14, 2022 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashfurrow/f8d6b103a21f4e17c71657f4000fdbac to your computer and use it in GitHub Desktop.
Save ashfurrow/f8d6b103a21f4e17c71657f4000fdbac to your computer and use it in GitHub Desktop.
Script at the end of the m.t self-destruct
irb(main):026:1* def perform_total_query(domain)
irb(main):027:1* Follow.joins(:account).merge(Account.where(domain: domain)).count
irb(main):028:0> end
irb(main):026:0> inboxes = Account.inboxes
irb(main):026:0> zero_inboxes = inboxes.select {|i| perform_total_query(i.gsub("https://", '').gsub(
"http://", "").gsub("/inbox", "")) == 0} # lol whatever
irb(main):025:0> zero_inboxes.count
=> 12916
irb(main):026:0> inboxes.count
=> 14895
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment