Archive for the ‘awk’ Category

Using awk to format strings

Awk is a programming language, which I only use in it’s most basic form. Quite often I need to format a few lines of text, as is the case with an OD password reset script I’m working on. (more…)

ARDAgent version

If you administrate a number of Mac clients you’ll no doubt be familiar with Apple’s Remote Desktop. As is the case with most software additional functionality becomes available in new release and ARD is no exception. Hence the ARD client version is a relevant piece of information and when I needed to get the information from a user without using Remote Desktop itself I came up with the following code. (more…)

Selectively emptying a Postfix mail queue

One of the mail servers I manage was blocked up to the hilt with sixteen thousand emails sent to a specific recipient. This meant no one could send or receive email in the office until Postfix had delivered the messages. Only problem was these messages weren’t going anywhere. To make matters worse, the queue contained important emails that had to be delivered! (more…)

Modified CSS Bundle for TextMate

If you use TextMate when you’re coding for the web you’ll probably have at least tried out Jim Jeffer’s CSS Bundle, which was inspired by an article by Jina Bolton. If not check it out!

When I first downloaded it I was impressed but not exactly blown away as the snippets don’t really leverage the true power of TextMate’s bundle system. I had to get to work to make things a lot smoother. (more…)

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…)