Public Gists by boosty

gist: 216753 Get the commercial week of ...
Gravatar
Fri Oct 23 01:46:30 -0700 2009
1
2
3
#!/usr/bin/env ruby
#
# Get the commercial week of the current year.
Gravatar
Fri Sep 04 02:22:56 -0700 2009
1
2
3
function psgrep {
  ps wwwaux | egrep "($1|%CPU)" | grep -v grep
}
Gravatar
Sun Aug 16 12:00:22 -0700 2009
1
2
3
# Include me in your ActiveRecord model and get string attributes
# trimmed/stripped before validation.
module TrimStringAttributes
Gravatar
Tue Jun 30 13:55:07 -0700 2009
1
2
3
# Want your Rails app to send all ActionMailer emails
# to a specific email adress instead of sending it
# to the world (e.g. in the staging environment)?
gist: 47346 git dirty prompt with a flash!
Gravatar
Thu Jan 15 01:54:28 -0800 2009
1
2
3
# http://henrik.nyh.se/2008/12/git-dirty-prompt
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/
#