I agree that there's a cultural factor in piracy. As for putting up the book on GitHub and a link for donations, that hardly ever works (like you said, "low pay rate"). Most people feel that they ought to pay only when faced with a specific "buy" option. Except for some terrific authors and great works, donationware usually doesn't get much for the author.