I occasionally have to search log files for email addresses. Here’s the command I use to extract them all out quickly into another file.
perl -wne’while(/[\w\.\-]+@[\w\.\-]+\w+/g){print “$&\n”}’ original.txt | sort -u > extracted_emails.txt
There’s probably room for improvement here—any ideas, please comment!
New Relic is the best way to track a Rails app’s performance, no question, but it still confounds me at times. Here’s something I learned today.
New Relic reports the number of instances per host; until today, I was reading this as the size of our mongrel pool.
It’s not, actually—it’s more like the ideal size of [...]