Skip to content

Instantly share code, notes, and snippets.

View chales's full-sized avatar

Chris Hales chales

View GitHub Profile
@chales
chales / base-d6.aliases.drushrc.php
Last active October 28, 2021 20:58
Drush aliases full featured base file for Local, Staging, Development and Production environments such as an Acquia or Pantheon hosted site. In this version the "structure-tables" array is setup for a Drupal 6 set of core tables and common contrib module tables (CCK and Views). You should modify the array and add or remove tables to match your b…
<?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}
@chales
chales / avg-apache-process.sh
Created March 21, 2012 20:54 — forked from amr/avg-apache-process.sh
Tells you the average size of your Apache processes
#!/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).