Tag Archives: linux

Load SSH key at startup for Mac OS X

5 Feb

If your ssh key is not adding and you continuously have to keep doing ssh-add -l ~/.ssh/mykey then do the following to add it to your keychain: ssh-add -K ~/.ssh/mykey   source: http://stackoverflow.com/questions/1909651/svnssh-not-having-to-do-ssh-add-every-time-mac-os keywords: mac osx ssh-add all the time  

WordPress Cron

20 Dec

A great way to take more control of your wp-cron and also slightly speed up wordpress is to disable cron and scheduled a cron job on your server to run wp-cron.php.  You just need a server that supports cron jobs. In wp-config.php add: define(‘DISABLE_WP_CRON’, true); Be careful though, sometimes this has a negative effect on [...]

Hardening WordPress

18 Dec

I’ll be updating this post as I find more and better explanations to hardening wordpress.  The more secure, the better.  Some things to keep in mind when you are trying to secure your wordpress installation. Be careful when saying a security measure is “not worth the time” to do it.  If it takes 5 minutes [...]

MAMP – MySQL can’t connect after OS X Crash

4 Sep

Problem I had my macbook open, it went to sleep and I couldn’t wake it up.  After holding down the powerbutton for over 10 seconds, it turned on.  Everything was fine until I tried to open the MAMP home page.  MySQL couldn’t start.  the error logs showed: InnoDB: Check that you do not already have [...]

How to Remove CVS folders recursively in Terminal

29 Jun

In mac os x terminal (linux) you can navigate to the desired directory and run the following command to remove any specific file or folder. find . -name CVS -exec rm -rf {} \\; Basically a “find” command can be concatenated with other commands so the same operation can be applied recursively to all the [...]

MAMP optimizations

18 May

“Optimizations” in the sense that you’ll have to do less work.  This website gives some great tips on saving you some time using MAMP. http://www.sitepen.com/blog/2008/05/16/supercharge-mamp/ This site below actually helped me with the silent MAMP startup.  Read the comments on this page for updates on getting it to work with version 2.  It’s so good [...]

Useful Linux Commands

16 Sep

I recently had to move a server and needed to set up another server. I’m a linux newbie so I needed to look up a lot of things. Below are some of the more common commands that I needed: (replace with your own command/name). Create a short name or alias to run a command. alias [...]

Mac OS X Linux Stuff

15 Sep

Locations and commands on the Mac OS X vs any other Linux/Unix system are different.  Below are some of the locations and commands I ran across in setting up my macbook as a webserver. apache2 is located in /etc/apache2/ Along with the httpd.conf: /etc/apache2/httpd.conf By default apache2 logs are located at: /var/log/apache2 By default files [...]