Rails script/server and terminal windows
Here’s a little hack for those of you that run Rails’ script/server on its own window or tab.
By inserting a couple of lines into the server script, you can have it change the title of the window or tab it’s running on, making it a lot easier to look for it when you have lots of windows open.

All you need is to change “script/server” so it looks like this:
#!/usr/bin/ruby
print “