Category Archives: scripts

get notified!

Mac OS X makes extensive use of a variety of event notification mechanisms, as described here. One such mechanism is documented in the notify(3) man pages, and it is these types of libnotify notifications that are the focus of this … Continue reading

Posted in development, OS X, OS X Server, scripts, tutorials | 1 Comment

Hacking Time Machine

It’s “hack some shit up” Friday. Everybody ready? Have a Time Capsule or Mac OS X Server configured to provide network time machine backups? Of course you do! Let’s examine the client / server interaction. The Time Machine preference pane … Continue reading

Posted in development, OS X, OS X Server, scripts | 3 Comments

disksleep

The purpose of this script is to add a bit of granularity and intelligence to the energy saver settings in Mac OS X for disk sleep. Problem: I want to let my disks sleep, but I HATE having to wait … Continue reading

Posted in OS X, scripts | Leave a comment

Tiger Server servermgrd library for Python

motivation I finally found a reason to write some Python. Being something of a monitoring and data junkie, I’ve had a fair amount of experience with snmp, data mining scripts, etc. After writing this post to the server list, I … Continue reading

Posted in development, OS X Server, scripts, tutorials | 17 Comments

DNS Zone File record generation script

In wrote the following as part of my response to this. #!/usr/bin/perl -w use strict; # Place the first three octets here. my $AddressPrefix = “10.0.1”; # Define the range of numbers, inclusive. my $range = “2 .. 10”; # … Continue reading

Posted in OS X Server, scripts | Leave a comment

Eggdrop TCL using Google’s SOAP API

Link to google-soap I was helping my brother with a script called incith-google used by one of his IRC bots. It acts as a bridge between IRC and google, allowing IRC users to perform queries against google from the comfort … Continue reading

Posted in development, scripts | Leave a comment

Apple airport base station monitor

Download. {1} andre@dude [~] % airport -h Program Options: -h print this help -d output in comma delimited format (base station ID lines are designated by ‘*’) -v verbose mode (stacks up to 3 times) –encode Specify plaintext to retrieve … Continue reading

Posted in OS X, scripts | 4 Comments

Installing perl modules locally

Dealing with CPAN has always felt a little weird. Today I found a nice shortcut for getting perl modules installed in a home directory, which is really useful for when you don’t have admin on the box, or if you … Continue reading

Posted in development, OS X, OS X Server, scripts | Leave a comment

Spotlight indexes on read-only media

Here’s a way to let spotlight do a full content index of a read only CD. It can even persist across uses :) #!/bin/sh # pass in the name of the r/o volume, e.g. DiskWarriorCD # this is proof of … Continue reading

Posted in OS X, scripts | 1 Comment

adduser script for Mac OS X / Mac OS X Server

http://www.dreness.com/bits/tech/adduser.html (syntax colored) http://www.dreness.com/bits/tech/adduser (raw)

Posted in OS X, OS X Server, scripts | Leave a comment