This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Tells you the average size of your Apache processes | |
# It must run on a live apache server (unless you know what you are doing). | |
# It requires pmap, /proc, ps, grep, awk, sed and bc, | |
# | |
# Written by: Amr Mostafa" <[email protected]> | |
# | |
# Courtesy of Egypt Development Centre (c). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Setup This File: | |
* Look for strings wrapped in { } and update them to match your environments. | |
* e.g. {project-short-name} is the abreviation name to replace throughout. | |
*/ | |
/** | |
* Site aliases for {project-short-name} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; See http://drupal.org/node/625094 | |
; drush make test_make.txt --contrib-destination=sites/all/modules/contrib --prepare-install /Volumes/Work/DevSites/testing/test.local | |
core = 6.x | |
api = 2 | |
; Core project | |
projects[] = drupal | |
; Contrib Modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'admin_users'; | |
$view->description = 'Emulates the Drupal user administration page.'; | |
$view->tag = ''; | |
$view->base_table = 'users'; | |
$view->core = 0; | |
$view->api_version = '2'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Default', 'default'); | |
$handler->override_option('fields', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'admin_content'; | |
$view->description = 'Emulates the Drupal content administration page.'; | |
$view->tag = ''; | |
$view->base_table = 'node'; | |
$view->core = 0; | |
$view->api_version = '2'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Default', 'default'); | |
$handler->override_option('fields', array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Local application path. The default is /Applications but I tend to separate | |
# my apps in the sub directories, e.g. /Applications/Internet | |
app_root="/Applications" | |
path_chrome="$app_root/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
# Everything below should be good as is, the script is interactive. | |
# 1 Name | |
# 2 URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Customized VCL file for serving up a Drupal site with multiple back-ends. | |
# | |
# For more information on this VCL, visit the Lullabot article: | |
# http://www.lullabot.com/articles/varnish-multiple-web-servers-drupal | |
# | |
# Define the internal network subnet. | |
# These are used below to allow internal access to certain files while not | |
# allowing access from the public internet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost 0.0.0.0:80> | |
ServerName mysite.sandbox | |
DocumentRoot /path/to/mysite.sandbox | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Request resides in your 'sites/default/files' folder. | |
RewriteCond %{REQUEST_URI} ^/sites/default/files/(.*)$ | |
# File doesn't exist. | |
RewriteCond %{REQUEST_FILENAME} !-f | |
# Directory doesn't exist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'content_advanced'; | |
$view->description = 'Allows for granular content search'; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Content Advanced'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName www.example.com | |
# Force secure access via redirect to https | |
RedirectMatch permanent /(.*) https://www.example.com/$1 | |
</VirtualHost> | |
# SSL | |
<IfModule mod_ssl.c> | |
<VirtualHost *:443> |
OlderNewer