Equivalent scrapbook

…scrap on Mac

software list

chrome

firefox
flashgot
firebug
vimperator

git

http://www.crainbandy.com/how-to/how-to-install-git-on-mac-os-x-leopard-snow-leopard

homebrew xcode git rvm

    http://eddorre.com/posts/rails-ultimate-install-guide-on-os-x-lion-using-rvm-homebrew-and-pow

mysql

downlad the mysql dmg, the 64 bit one!!

than run in order

  • mysql...pkg
  • Mysqlstartupitem.png
  • Mysql.prefPane

.bash_profile

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH

than
(this is setting secure mysql and also change user password

cd /usr/local/mysql
sudo ./scripts/mysql_install_db
sudo ./bin/mysql_secure_installation

mysql console

GRANT ALL on *.* to root@'%' identified by "password"
FLUSH PRIVILEGES

and restart your mac machince, ...yea restart,you heard me.

uninstaling/removivg mysql

udo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*
ps auwx | grep mysqld

changing root passwword

UPDATE mysql.user SET Password=PASSWORD('NewPassword') WHERE User='root'; FLUSH PRIVILEGES;

instaling sphinx

sudo port install sphinx

in file /Users/tomi/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httprequest.rb change the 1024 to 2048

run the tsrebuild

lt note:

gem install capistrano-ext

how to reinstall your mac lion

http://www.apple.com/macosx/recovery/

hold

comand+r

during startup

macports

how to uninstall something

$ sudo port selfupdate
$ sudo port clean --dist <portname>
$ sudo port install <portname>

note

sudo port remove <something>
sudo port uninstal <something>

is may not be enought

if you are trying to uninstall openssl you will face hell there is no way how to remove openssl just way to deactivate it

 sudo port -f deactivate openssl

in my case I totaly screw up openssl and was trying to overinstal it with brew install openssl but that's not good ida rather remove whole macports (all dependancies) and install them again

   sudo port -fp uninstall --follow-dependents installed

    sudo rm -rf \
    /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \
    ~/.macports

life saver: https://trac.macports.org/ticket/19122 , https://gist.github.com/970901 , http://guide.macports.org/chunked/installing.macports.uninstalling.html

shortcuts

http://www.danrodney.com/mac/

mac comnads

cmd+backspace   #move file to trash
cmd+`     #switch between windows of same applycation (liek alt tab in ubuntu)
cmd+space #run command input field
cmd+q     #quit
cmd+,     #preferences
cmd+alt+f # fullscreen mode
control+shift+eject   #lockscreen    


f12 #show desctop
f11 #show dashboard
ctrl+uparrow  #mission control
ctrl+downarrow  #application window

sift+cmd+h

terminal

cmd+c, cmd+v
cmd+t    #open new tab terminal
cmd+n    #open new terminal
cmd+{, cmd+}, cmd+shift+arrows   #  next, prew tab


ctrl-alt-a    #go to start of line
ctrl-art-e    #go to end of the line
alt+arowleft, alt+arowrigth    # vim 'e' and 'b' aletrnativ

cmd+ +, cmd+ -  # zoom

discover hardware info on mac

sysctl -A

/usr/sbin/system_profiler

dns

reload dns

dscacheutil -flushcache