Thursday, October 13, 2011

Prevent Dock from showing Recent Files

defaults write org.videolan.vlc NSRecentDocumentsLimit 0
defaults delete org.videolan.vlc.LSSharedFileList RecentDocuments
defaults write org.videolan.vlc.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

defaults write org.m0k.transmission NSRecentDocumentsLimit 0
defaults delete org.m0k.transmission RecentDocuments
defaults write org.m0k.transmission RecentDocuments -dict-add MaxAmount 0

defaults delete org.niltsh.MPlayerX.LSSharedFileList RecentDocuments
defaults write org.niltsh.MPlayerX NSRecentDocumentsLimit 0
defaults write org.niltsh.MPlayerX.LSSharedFileList RecentDocuments
defaults write org.niltsh.MPlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0

Source - http://simon.heimlicher.com/hints/macosx/disable_recent_items

Sunday, October 2, 2011

Basic SQL

Host - localhost
user- root
password - root
DB Name - Feedback

Connecting to a DB
/Applications/MAMP/Library/bin/mysql -u root -proot

Exporting a DB
/Applications/MAMP/Library/bin/mysqldump -u root -p FEEDBACK > FEEDBACK.db

Importing Data into a DB
/Applications/MAMP/Library/bin/mysql -u root -proot -h localhost FEEDBACK < FEEDBACK.db