This file contains hidden or 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 | |
/** | |
* Database URL format: | |
* $db_url = 'mysqli://username:password@localhost/databasename'; | |
*/ | |
$db_url = 'mysqli://username:password@localhost/databasename'; | |
$db_prefix = ''; | |
// Access control for update.php script |
This file contains hidden or 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 | |
# | |
# pushkey | |
# | |
# usage: | |
# | |
# pushkey [email protected] | |
# | |
# This script was originally written by Greg Anderson |
This file contains hidden or 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
#### Example SSH config file | |
# Host = a list of domains, IPs and personalized aliases that use this config | |
# entry. These alias names follow "Host" and are space delimited. | |
# e.g. Host 192.168.1.1 example.com example1 myalias1 | |
# Hostname = the IP or real hostname | |
# e.g. Hostname 192.168.1.1 | |
# User = the username | |
# e.g. User jdoe | |
# Port = if this is a non standard port, i.e. not 22 |
This file contains hidden or 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
# Copy your public key (id_rsa.pub assumed) to a remote server and push it into | |
# the authorized_keys file. | |
# An assumption is your key is named "id_rsa" so make sure that is correct. | |
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> ~/.ssh/authorized_keys' | |
# What about not having a ~/.ssh directory already on the remote host? You | |
# would be better off logging into the remote machine and doing a 'ssh localhost' | |
# there which will create the directory with proper permissions. You can give | |
# this a try but if you run into a login issue it's likley permission based. |
This file contains hidden or 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 | |
/** | |
* @file | |
* This is an abreaviated Drupal site-specific configuration file. | |
* | |
* IMPORTANT NOTE: | |
* Please review the example.settings.php file for full details on and defaults. | |
* Many details and instructions are ommitted here for brevity. | |
*/ |
This file contains hidden or 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
#!/usr/bin/env python | |
# Try to determine how much RAM is currently being used per program. | |
# Note per _program_, not per process. So for example this script | |
# will report RAM used by all httpd process together. In detail it reports: | |
# sum(private RAM for program processes) + sum(Shared RAM for program processes) | |
# The shared RAM is problematic to calculate, and this script automatically | |
# selects the most accurate method available for your kernel. | |
# Licence: LGPLv2 |
This file contains hidden or 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 | |
# This script will iterate through the sites directory of a multi-site install | |
# and run the cron.php for each named site in the directory. | |
# NOTE: the domain defined in 'sites/default' must be run separately or via a symlink. | |
DEFAULTDOMAIN=www.example.com | |
# Set the system path for the multi-site "sites" directory | |
SITESROOT=/path/to/drupal/sites |
This file contains hidden or 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 | |
/* | |
+----------------------------------------------------------------------+ | |
| APC | | |
+----------------------------------------------------------------------+ | |
| Copyright (c) 2006 The PHP Group | | |
+----------------------------------------------------------------------+ | |
| This source file is subject to version 3.01 of the PHP license, | | |
| that is bundled with this package in the file LICENSE, and is | | |
| available through the world-wide-web at the following url: | |
This file contains hidden or 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
# This can be added to your cron job to run right after Drupal's cron or combine them into a single command so | |
# that it automatically executes when the cron run completes. | |
wget -q http://www.example.com/sitemap.xml -O - | egrep -o "http://www\.example\.com[^<]+" | wget -q -i - -O /dev/null --wait 1 |
This file contains hidden or 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 | |
/** | |
* This profile was generated with profile_generate module but DOES NOT configure everything | |
* correctly. Pathauto options are not set, the Marvin theme, and several other items. | |
* When I have time I'll try to debug the few options that are missing. | |
*/ | |
/******************************** |