you are in: codestackercodes [RSS] → tag: mac [RSS]

uninstall cooliris for safari Delicious

cooliris is a nice app, but has no utility.

source: http://discussions.apple.com/thread.jspa?threadID=1730494&tstart=0

show/hide lines
   1  tell application "Safari" to quit
   2  do shell script "rm -rf ~/Library/Preferences/com.cooliris.safariplugin.plist" with administrator privileges
   3  do shell script "rm -rf ~/Library/Application\\ Support/Cooliris/" with administrator privileges and password
   4  do shell script "rm -rf /Library/Receipts/cooliriswebkitplugin.pkg" with administrator privileges and password
   5  do shell script "rm -rf /Library/Receipts/cooliris.pkg" with administrator privileges and password
   6  do shell script "rm -rf /Library/Internet\\ Plug-Ins/CoolirisWebKitPlugin.plugin" with administrator privileges and password
   7  do shell script "rm -rf /Library/InputManagers/Cooliris/" with administrator privileges and password
   8  display dialog "Cooliris files are deleted." buttons {"Quit"} default button 1 cancel button "Quit"
   9  
created by leozera — 12 November 2008 — get a short url — tags: applescript cooliris mac safari embed

disable spotlight on a fat32 external drive Delicious

show/hide lines
   1  cd /Volumes/your_drive
   2  touch .metadata_never_index
created by leozera — 21 October 2008 — get a short url — tags: mac spotlight terminal embed

remove the mac os x glowing blue outline for input fields Delicious

show/hide lines
   1  input:focus { outline: none; }
created by leozera — 18 October 2008 — get a short url — tags: css input mac safari embed

alias sample Delicious

the alias command makes it possible to launch any command using a pre-set string. i love it!

show/hide lines
   1  $ alias mypassword="echo '123456'"
   2  
   3  $ mypassword # return '123456'
created by leozera — 17 October 2008 — get a short url — tags: mac terminal embed

stop/start mysql via terminal Delicious

show/hide lines
   1  sudo launchctl unload -w /Library/LaunchDaemons/com.mysql.mysqld.plist
   2  sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysqld.plis
created by leozera — 17 October 2008 — get a short url — tags: mac mysql terminal embed

lock/unlock icons in dock Delicious

show/hide lines
   1  defaults write com.apple.dock contents-immutable -bool true
created by leozera — 04 October 2008 — get a short url — tags: dock mac embed

get your mac's serial code Delicious

show/hide lines
   1  /usr/sbin/system_profiler SPHardwareDataType | /usr/bin/awk '/Serial Number/ {print $3}'
created by leozera — 10 September 2008 — get a short url — tags: mac serial embed

color your os x shell Delicious

open your ~/.bash_profile, paste and be happy!

show/hide lines
   1  export CLICOLOR=1
   2  export LSCOLORS=ExFxCxDxBxegedabagacad  
created by leozera — 29 September 2008 — get a short url — tags: mac shell embed

screenshot file format in mac os Delicious

show/hide lines
   1  defaults write com.apple.screencapture type jpg
created by leozera — 21 September 2008 — get a short url — tags: mac screenshot embed

disable shadow in screen window captures Delicious

show/hide lines
   1  defaults write com.apple.screencapture disable-shadow -bool true
   2  killall SystemUIServer
created by leozera — 17 August 2008 — get a short url — tags: mac embed
Displaying records 1 - 10 of 15