:::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
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
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
Using ditto to zip up a folder: ditto -ck --sequesterRsrc {source} {destination.zip} Using ditto to unzip: ditto -V -x -k --sequesterRsrc --rsrc {source.zip} {destination} [...] Read more
If you forget your list password for a mailman list in plesk, you can use the following: /usr/lib/mailman/bin/change_pw --domain=domain.com --password=password where domain.com is the domain [...] Read more
Here is a list of what is in my usual field tech toolkit. Screwdrivers:
Smart Pro Precision Extendible 12-in-1 Kit - $9.99 - Model #SPT4500
Husky 6-in-1 Reversible Screwdriver - $6.98 - Model #74361 [...] Read more
Mail is stored in /var/qmail/mailnames/DOMAIN.TLD Recalculate stats now /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=DOMAIN.TLD [...] Read more