Lately I been having a lot of trouble with my MAMP mysql and I think it has something to do with Mac OS X Mountain Lion. Sometimes when I try to start MAMP, my apache server get launched but my mysql server doesn't. What I do is terminate the mysql process before I startup MAMP … Continue reading Problems with MAMP’s MySQL server on Mac OS X Mountain Lion
Category: Mac and Apple stuff
Jump to Beginning of Line – Control+A Jump to End of Line – Control+E Go to Next Line – Control+N Go to Previous Line – Control+P Delete Previous Word – Control+W Delete Line from Cursor to Beginning – Control+U Delete Line from Cursor to End – Control+K
Just run this command in your terminal and replace "mynewhostname" with your desired hostname: sudo scutil --set HostName mynewhostname If you want to know your current hostname just type: hostname
To get a pretty list of all your commit in your mac terminal use this command: git log—pretty=format:”%h - %an, %ar : %s” The list will than look like this:
I recently had to get into a mac but I didn’t have the password to do that. All you need to do apparently is boot from the install cd you got with your mac and choose reset password from the menu where you can also find the disk utility.
Recently my cornerstone (a subversion client) got corrupted and I couldn‘t checkout my working copy. So I had to remove all of the .svn folders and files by hand. A very labour-intensive job if your website consists of about 3000 files. Terminal to the rescue: just go to your folder, containing all the subversion files, … Continue reading How to remove all subversion .svn files and folders
command option eject: This puts your mac fast to sleep control shift eject: turns off your screen command shift 4: I use this to measure pixels, but it‘s intended to make screenshots command option d: show and hide the dock Control Eject: Restart, Sleep, Shutdown dialog box Control command D: Looks up a word in the dictionary. A reasonably unknown shortcut in … Continue reading Some useful mac shortcuts