Author Archives: dre

About dre

I like all kinds of food.

My nintendo WFC friend code!

287839 004114

Posted in games | Leave a 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

vacation notes

I recently went to PA for a family gathering; mom came up from FL, my brother came out from Seattle, and all the people who live out that way. Impossible to get *everybody*, but we did ok. Flew out on … Continue reading

Posted in bit bucket | Tagged , | 2 Comments

I just learned that my friend Michael Bartosh died this weekend. His death was accidental; he fell from a balcony in Tokyo. He was a pretty well known guy in the mac enterprise consulting sphere; definitely one of the very … Continue reading

Posted in bit bucket | 6 Comments

Apache AddType directives for AAC audio

AddType audio/x-m4a m4a AddType audio/x-m4b m4b

Posted in bit bucket | 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

Remote Server Setup get stuck?

I was using Server Assistant to do a remote setup of Mac OS X Server, and for some reason Server Assistant hung. When I relaunched it, the target server would not allow me to start over or continue the remote … Continue reading

Posted in OS X Server | Leave a comment

NSTask trickery for long shell pipelines

I learned a cool trick hack today in the process of trying to help somebody with their cocoa code. Dude was trying to fire an NSTask with some arguments for the current command, and then an additional argument that included … Continue reading

Posted in development | 3 Comments

Modifying nested property list items with PlistBuddy

The /usr/bin/defaults command gives us basic command line access to the Mac OS X preferences system. I say ‘basic’ because it provides no facility for directly operating on any keys / values that are not at the top of the … Continue reading

Posted in OS X | Leave a comment

Managing dual boot Macs

How I learned to stop worrying and image / restore those dastardly windows NTFS partitions: http://www.bombich.com/mactips/dualboot.html

Posted in OS X | Leave a comment