Mac OSX

[top] mamp reboot (manually)

sudo /Applications/MAMP/bin/start.sh
sudo /Applications/MAMP/bin/stop.sh
sudo /Applications/MAMP/bin/start.sh OR use GUI
This will shutdown MySQL and Apache services via MAMP.
I had to do this once because my laptop lost power and MAMP would not function properly.


[top] Show hidden files

defaults write com.apple.Finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles NO
Turn on hidden directory viewing in Finder. I got sick of not being able to access /usr, /tmp, /etc view the Finder so I found this snippet. The YES at the end turns in on, the NO turns it off.
*Note: DO NOT RUN AS "sudo".


[top] un-3d dock

defaults write com.apple.dock no-glass -boolean YES; killall Dock
This takes away the 3d affect on the dock. I do this in an attempt to speed up my desktop.


[top] VPN reboot

sudo ifconfig en1 down
sudo ifconfig en1 up
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart
Restarts the network interface card and reboots the vpn client.
I have had to do this before because sometimes I get the following error message when starting it:
"Error 51: Unable to communicate with the VPN subsystem"