OSX terminal commands etc
apachectl start
apachectl stop
apachectl restart
/usr/libexec/java_home
- Shows where JAVA_HOME should be
chflags hidden <file/dir>
- Set file as hidden (from finder etc)
sed is fucked, don't use it - Use gsed installed through macports which works as expected
Macports package management
sudo port install <app>
sudo port selfupdate
sudo port upgrade outdated
sudo port search <app>
(stuffs installed in /opt/local/bin/)
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
killall NotificationCenter
- Run both commands to get rid of notification center
#Fix sparsebundle rename
diskutil rename Git git
(then eject and re-attach)
#Remove MySQL
rm -rf /usr/local/mysql*
remove app from Applications
#Automount SMB on boot example
1. Edit the file /etc/auto_master and add a new entry for filestore: /Users/Shared/filestore pn_map
2. Create a mapping file at /etc/pn_map: Departments -fstype=smbfs ://username:password@fileserver01.pn.domain/Departments
3. Update the automount service to enable the new mount point: sudo automount -vc