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 | |
echo '<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>Increase open files limit</string> | |
<key>ProgramArguments</key> | |
<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/bash | |
echo '<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>Increase open files limit</string> | |
<key>ProgramArguments</key> | |
<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
<?php | |
$page = new stdClass(); | |
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ | |
$page->api_version = 1; | |
$page->name = 'access_denied'; | |
$page->task = 'page'; | |
$page->admin_title = 'Access Denied (403)'; | |
$page->admin_description = ''; | |
$page->path = 'access-denied'; |
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 | |
/** | |
* @file | |
* Example drush alias file for multihost use. | |
*/ | |
// Alias settings common to all. | |
$aliases['base'] = array( | |
'root' => '/var/www/docroot', |
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 | |
$path = '/' . drupal_get_path('module', 'devel'); | |
$js = $path . '/krumo/krumo.js'; | |
$css = $path . '/krumo/skins/orange/skin.css'; | |
$vars = array( | |
'!script' => "<script type='text/javascript' src='$js'></script>", | |
'!link' => "<link rel='stylesheet' type='text/css' href='$css'></link>", | |
); | |
watchdog('debug', kprint_r($_GET, TRUE) . '!script !link', $vars, WATCHDOG_DEBUG); |
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 | |
drush coder-review --comment --no-empty --i18n --minor --sql --style --sniffer --security --release |
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 | |
# Shortcut to the s3 console command. | |
s3='/usr/local/bin/aws s3' | |
# Define the AWS action: move (mv) or copy (cp). | |
action=$1 | |
# Remove action from list of file arguments. | |
shift |
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 | |
if [ $(id -u) != 0 ]; then | |
printf "This script must be run as root.\n" | |
exit 1 | |
fi | |
drupal_path=${1%/} | |
drupal_user=${2} | |
httpd_group="${3:-www-data}" | |
# Help menu |
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 | |
echo "Creating hooks directory.\n"; | |
mkdir('.git/hooks', 0775, true); | |
echo "Downloading pre-commit hook.\n"; | |
$fp = fopen('.git/hooks/pre-commit', 'w'); | |
$precommit = file_get_contents('http://gitscripts.s3.amazonaws.com/pre-commit'); | |
fwrite($fp, $precommit); | |
fclose($fp); |
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
. |
OlderNewer