Category Archives: scripts

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) Link Summaryhttps://dreness.com/bits/tech/adduserhttp://www.dreness.com/bits/tech/adduser

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

Automated backups of Open Directory databases

# Automated backups of Open Directory databases (ldap / kerberos / password server) # This needs to run as root and should be mode 700 due to embedded password # Get current date TODAY=`/bin/date +’%m-%d-%y_%H:%M:%S’` # Set destination directory (do … Continue reading

Posted in OS X Server, scripts | Leave a comment