You could always remotely access your mac.

I doubt it, although if you write terminal code with no mac specific features then it should work on any unix terminal and I'm sure that you can find an emulator for an older unix. You could also use a Linux Live CD since Linux is based on UNIX.