Skip to content

Instantly share code, notes, and snippets.

@solarkennedy
solarkennedy / kwas python quine
Last active April 3, 2018 11:17
silly python quine
A quine is program that prints itself
@mks-m
mks-m / tailor.rb
Created June 21, 2012 18:30
the realtime newrelic
# Usage, assuming that production.log is your rails log
#
# $ tail -f production.log | grep Completed | ruby tailor.rb <estimate> <size>
#
# * estimate is estimated number of requests per second (make it 50% larger)
# * size is length of every stat block(second, minute, hour)
# a line to print out
#
# @accept [Integer] num number of requests