There are some work environments where using "shit" and "fuck" would be a turn-off -- not all places are very relaxed about that stuff.
On a more personal note, it feels immature -- titling a section "Oh shit what" just for the sake of irony dilutes the meaning of what they're conveying. The info would be equally effective without it, and it's just filler.
I know people just want to have fun, but why not save the swearing for personal blog posts rather than a large (and growing) open source project?