It is well known how to evaluate a definite integral like $$ \int_{0}^\infty dx\, R(x), $$ where $R$ is a rational function, using contour integration around a semicircle or a keyhole. Most complex analysis books only treat well-known and easy examples like this. What I am looking for is examples of integrals that can be evaluated using contour integration, but require more creative tricks, unusual contours, etc. and are not treated in common textbooks.
Useful answers are applicable not just to one integral, but are somewhat general. Needless to say, answers do not have to include the full computation to be useful.