How to show hidden files in MAC OSX Mavericks

This worked for me in Mavericks, probably works for earlier versions as well:

Open the Terminal

write this: 

defaults write AppleShowAllFiles YES

and intro.

Now refresh the Finder: right-click on the Finder icon and select “refresh”

Thank you Mikesel for the explanation:

New Terminal at Folder in Mac OSX

A very useful service is to be able to open the terminal while you are browsing with the Finder. I was using that until I had to reformat the Mac and I did not recall that this feature has to be activated.

Thanks to this answer in Stack Overflow, I learnt how to put it back:

System Preferences > Keyboard > Keyboard Shortcuts > Services

MAMP: how to use MYSQL from console

I could not access the mysql database from console, getting this error

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ 

So I googled and found this:

and I sorted it out using:

sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /tmp/mysql.sock

This will allow you to access through the console and do things such as

mysql -u root …

But now, there is an additional challenge. When I try to use the database through php (launching the console php -a), using sentences to connect such as mysql_connect(DB_HOST, DB_USUARIO, DB_PASSWORD) it will return the error

Warning: mysql_connect(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock) in php shell code on line 1

So, again searching in google, this is the solution:

sudo mkdir mysql

cd mysql/

sudo ln -s /tmp/mysql.sock mysql.sock