How to use MongoDB to collect summary stats
When you have a lot of disparate jobs running in lots of separate processes across many different machines, it’s really helpful to collect various stats from them about how they’re doing. I’ve found mongodb to be very helpful for this. For my purposes, storing daily counts is sufficient and keeps the collection from getting too big. The thing that makes this particularly easy...
Piping command line output to the clipboard on OSX
Apparently, you can pipe output to the pbcopy binary, and it will put the output of the command directly on the clipboard. Useful! I have a ruby script that dynamically generates my email signature to include links to a few of my recent posts, and it’s really handy to be able to copy this directly to the clipboard instead of having to go through a file. ...