Tag Archive for 'snippet'

ARDAgent version

I needed to display the ARDAgent version on a Mac the other day without sending anyone (else) in to the command line. Without any remote access I decided a quick Applescript would do the job. It’s very dirty, nothing more than a quick hack really… But it worked. Here’s the code in case you ever need to do the same. MORE »

Terminal, colour and Ruby

I use ruby for system administration tasks all the time and find a little colour always helps to highlight certain information. The only problem is I’ll forget which colour is represented by which number. The ruby script below prints out a nice box of all foreground and background colours. I’ve uploaded a screenshot of the output below so you can see how it looks. MORE »