This is just a bit improved version of the @AIRam model. I was using his version for quite a long time, but sometimes happened to me that the holder fell when I grabbed the portafilter. I have decided to add 2 magnets for better stability.
Supported magnet sizes: