Skip to content

Instantly share code, notes, and snippets.

@astroza
Created January 22, 2016 15:47
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 astroza/4a0d072a25258a85646a to your computer and use it in GitHub Desktop.
Save astroza/4a0d072a25258a85646a to your computer and use it in GitHub Desktop.
bin/dj_inspector.rb
#!/usr/bin/env ruby
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
Thread.start(TCPServer.new(51313)) do |server|
loop do
puts "listening"
client = server.accept
puts "new client"
while line = client.gets
puts line.chop
end
client.close
end
end
a=Inspector.new
a.delay.inspect_objects_space
sleep 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment