An example of this (though not following -brazil-'s case) would be in Clive Cussler novels. Cussler usually inserts himself as an extremely minor character. Usually when the main character sees this character he says something along the lines of "You look familiar, what is your name again?" And the character turns out to have the same name as the author.