Installing Git on Westhost & Redhat

Install Python using your web installs download the latest source from git make NO_CURL=1 NO_MSGFMT=YesPlease NO_TCLTK=YesPlease prefix=/usr/local install That should do it.

Setting up Apache & SSL on OSX Leapord

Task: Configure my localhost & apache to allow for ssl. Solution: Go here: http://developer.apple.com/internet/serverside/modssl.html Note: when asked for “Common Name” when creating your certificate file, instead of using the 127.0.0.1 use the domain name you are going to use for development. ie: www.mysite.local # # This is the Apache server configuration file providing SSL support. [...]

Single .htaccess file in your git repo for both your dev and production server

Problem: You want to have dev.yoursite.com and www.yoursite.com but you don’t want dev.yoursite.com visible to the public. Solution: If your using apache(which many of us are), .htaccess and .htpasswd to the rescue. In your .htaccess file add: SetEnvIf Host yourstagingserver.com passreq AuthType Basic AuthName “Staging Server” AuthUserFile /path/to/.htpasswd Require valid-user Order allow,deny Allow from all [...]

Country Codes in PHP Array

$options["AF"] = “Afghanistan”; $options["AX"] = “Åland Islands “; $options["AL"] = “Albania “; $options["DZ"] = “Algeria “; $options["AS"] = “American Samoa “; $options["AD"] = “Andorra”; $options["AO"] = “Angola “; $options["AI"] = “Anguilla “; $options["AQ"] = “Antarctica “; $options["AG"] = “Antigua and Barbuda “; $options["AR"] = “Argentina”; $options["AM"] = “Armenia “; $options["AW"] = “Aruba “; $options["AU"] = [...]

Useful Rackspace Tutorials

Apache Configuration Virtual Hosts(sites-available & sites-active): http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Virtual_Hosts http://cloudservers.rackspacecloud.com/index.php/Ubuntu_-_Apache_Configuration_Layout Security: (SSH Keys): http://cloudservers.rackspacecloud.com/index.php/Basic_Cloud_Server_Security IPTables : http://cloudservers.rackspacecloud.com/index.php/Sample_iptables_ruleset APT-GET Repositories : For some reason the ubunto distro 9.04 didn’t have these added to its apt-get sources.list. So I added them. deb http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe Installing Ruby: [...]

Linux command that are handy when configuring a new server

To view a user’s groups: “id [user]” Add a user to a group : useradd -G {group-name} username Add a user to multiple groups: usermod -a -G group1,group2 username Change a users primary group: usermod -g group user Add a group to a user usermod -a -G group user Get a list of the groups: [...]

Dropbox & Git… Don’t drop a git repo in GIT

Today i accidentally dropped a folder that had a git repo inside it into a dropbox folder. Massive Memory Hog trying to index it both on update and delete….

OSX and Apache .htaccess allow mode rewrite

So today i had to get Apache, PHP and Mysql running again on my macbook after installing a new hardrive. PHP is installed already so thats fine. Mysql a simple download and install. I stick to the 32 bit for now as it not everything plays nicely w/ the 64 bit. Especially not with Python. [...]

CakePHP – Override .htacces to ignore directory

<IfModule mod_rewrite.c> RewriteEngine on RewriteRule    ^manager    -    [L] RewriteRule    ^pma    -    [L] RewriteRule    ^fm    -    [L] RewriteRule    ^$ app/webroot/    [L] RewriteRule    (.*) app/webroot/$1 [L] </IfModule>

Can-Do.org – Virtual Volunteer – Crow Creek Indian Reservation

Project Crow Creek & Can-DO.org Bringing accountability and transparency to the Donation industry, we offer the tools to track your generosity from your hands, directly through to the end recipient, with nothing cut out for miscellaneous fees. Together, we can avoid the Donation Black Hole problem perpetuated by many charities. You will not need to [...]