When I lived in a rent house, I had my noisy Craftsman 60 gal. oiless up in the corner of my single car garage. It was sitting next to the door that went into the house, you walked past the washer and dryer which were on either side of you. Lickily, the dryer and compressor were ont he same side. I bought a new dryer cord, two outlets, two boxes and some 220v romex. I mounted one box on the wall in the house next to the door and put a outlet in it that was connected to the new dryer cord. The new cord plugged into the dryer outlet and the dryer plugged into my new outlet. On the other side of the wall I mounted the other box and outlet. I used some wire to go thru the wall to connect the two boxes back to back, so the inner box was connected to the new cord AND the romex going to the box in the garage. I ended up hard wiring the compressor to the box in the garage so I could use the outlet for my Lincoln stick welder and I didn't want to spend more money for another cord.
The plug inside was so I could unplug the dryer to make sure I didn't trip the breaker, if my wife saw the dryer was unplugged, she knew not to use it.
On hindsight, I wished I had used a plug on the compressor as there were a couple times I forgot to turn it off and it cycled at 2:30 am, I flew out of bed as it was only a 900 sf house, scared the crap out of me. Only time I ever tripped the breaker, I was welding in some C-notches on a mini truck frame and had left the compressor on, it cycled while I was welding. This wouldn't have been a big deal had the breaker box been in the garage, but it was in a closet in the house.