Skip to content

Instantly share code, notes, and snippets.

View mapkyca's full-sized avatar
💭
Always out numbered, Never out gunned

Marcus Povey mapkyca

💭
Always out numbered, Never out gunned
View GitHub Profile
@mapkyca
mapkyca / gist:1919586
Created February 26, 2012 23:14
Etch -> Lenny
Notes from upgrade:
Prep:
1) Make sure up to date, aptitude update && aptitude upgrade
2) Reboot
Upgrade:
1) Change sources (etch->lenny)
2) aptitude safe-upgrade & resolve issues
@mapkyca
mapkyca / .htaccess
Created January 26, 2012 10:49
Apache mod_rewrite rule to pass requests to a PHP page handler, but only if the file or folder doesn't physically exist.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ path/to/pagehandler.php?page=$1 [QSA]
</IfModule>