The Private Memoirs and Confessions of a Justified Sinner by Hogg, James
 is a Project Gutenberg book, now on Github.