Mounting Mac OS X Disk Images with Shadow Files

- Posted in Uncategorized by
Mount with Shadow: hdiutil attach -owners on original.dmg -shadow Unmount: hdiutil detach /dev/disk# Commit changes: hdiutil convert -format UDZO -o new.dmg origianl.dmg -shadow [...] Read more

Calling Applescript from Perl

- Posted in Uncategorized by
:::perl sub osascript($) { system 'osascript', map { ('-e', $_) } split(/\n/, $_[0]); } and to use it: :::applescript osascript <<END; tell application "Finder" display dialog "Hello" end [...] Read more

Using Screen

- Posted in Uncategorized by
screen starts session ctrl-a, D detach session screen -r reattaches to session [...] Read more

MySQL on Mountain Lion Server

- Posted in Uncategorized by
Download MySQL Install Install Startup Item Install PrefPane Set up shell aliases Copy config to /etc/my.cnf Add socket to /etc/my.cnf mkdir /var/mysql chmod _mysql /var/mysql ln -s [...] Read more

Lowering XProtect

- Posted in Uncategorized by
We needed to use older versions of Java for a few business apps. Apple would update the XProtect file which would disable older versions of Java. We use this script to lower the blocked version to [...] Read more
Page 5 of 7