Skip to content

Instantly share code, notes, and snippets.

Aaron Hamid ahamid

Block or report user

Report or block ahamid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ahamid
ahamid / bootstrap-drupal-quercus.sh
Created Jan 24, 2011
Bootstrap Drupal 6.20 on Quercus
View bootstrap-drupal-quercus.sh
#!/bin/sh
DRUSH_TGZ=drush-All-versions-4.1.tar.gz
RESIN_TGZ=resin-4.0.14.tar.gz
MYSQL_DRIVER_TGZ=mysql-connector-java-5.1.14.tar.gz
function msg {
echo
echo -e "\033[31m $1 \033[39m"
@ahamid
ahamid / gist:715653
Created Nov 25, 2010
Conditional layout with devise
View gist:715653
class ApplicationController < ActionController::Base
layout :layout_by_resource
# choose different layout for devise
def layout_by_resource
if devise_controller?
"users"
else
"application"
You can’t perform that action at this time.