The out-of-print book is Commutative Algebra by Matsumura. For example, you can't buy it on Amazon.
I take notes, solve the exercises, but sometimes in my notes (typed) I just copy word-for-word what is written.
If posting the notes in chunks in a blog format is illegal, what is the best I can do? For example offer a download with PDF. I am not deriving any money from this, just wanting to share my notes to anyone who finds them useful.