General

Vibrant Ink for Snow Leopard Terminal

If you’re on Leopard (Mac OS X 10.5), follow the instructions on the following post: Vibrant Ink for Leopard Terminal

Here’s a preview of what we’re trying to achieve:

vibrant-ink-1

Instructions
1. Download and install the SIMBL plugin on the website. There’s instructions on how to install the SIBML plugin there.
Download SIMBL: SIMBL website

2. Install the TerminalColors hack for Leopard. Extract to ~/Library/Application Support/SIMBL/Plugins
Download TerminalColors: TerminalColors 64 bit | Mirror

3. Install the Vibrant Ink for Snow Leopard Terminal Theme.
Download theme: Vibrant Ink for Snow Leopard Terminal Theme

4. Launch Terminal. Type in the following command:

pico .bashrc [PRESS ENTER]

OPTIONAL: If you’re on ZSH, type in the following command:

pico .zshrc [PRESS ENTER]

5. Copy the following command and paste them into your terminal screen.
# START COLOR #
export GREP_OPTIONS='--color=auto'
export CLICOLOR=1;
# END COLOR #

vibrant-ink-2

6. Press CTRL + X.

7. Press Y to save the file.

8. Voilà! You’re done! Close your terminal and your Terminal should look something like the screenshot above! I use Pragmata font in the screenshot above, so feel free to change the font to what you heart desire.

Standard
General

Install CakePHP on ServerFreak

CakePHP-1.1-iPad01-light

To get CakePHP to work with ServerFreak or any other hosting (e.g. IPSERVERONE, 1&1, Godaddy) that serves from a user directory that already uses mod_rewrite, all you have to do is add RewriteBase statements to the .htaccess files that CakePHP uses:

  • /.htaccess
  • /app/.htaccess
  • /app/webroot/.htaccess

Here’s how they should look like after modification.

/.htaccess

<ifmodule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</ifmodule>

/app/.htaccess

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^$ /webroot/ [L]
RewriteRule (.*) /webroot/$1 [L]
</IfModule>

/app/webroot/.htaccess


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
</IfModule>

Once you have completed all the steps above, you should have a working CakePHP installation!

Source: 3.3.4 Apache and mod_rewrite (and .htaccess)

Standard