git remote add <name> <url>
git remote add upstream [email protected]:central-github-repo-username/sitename.git
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
Overall Repository Organization | |
This is your base repository URL: | |
%fill:repo_url% | |
Under this path you have three folders to organize your repository: | |
%fill:repo_url%/trunk | |
%fill:repo_url%/tags | |
%fill:repo_url%/branches | |
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 | |
/** | |
* Redirection rules for default Drupal site | |
* | |
* This drop-in for the default site's settings.php provides HTTP 301 | |
* redirection rules for any request which does not already have a Drupal | |
* site folder assigned. Redirect rules are located in the global | |
* default_redirect array. | |
* |
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 | |
# usage: drupal-quick-dump user host database | |
USER="$1" | |
HOST="$2" | |
DB="$3" | |
DATE=`date +%Y%m%d` | |
# Get User Password | |
echo "Please provide the password for ${USER} on db ${DB} hosted at ${HOST}:" |
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
MCINTERVAL=5; HOSTSHORT=`hostname -s`; MCHEADER=`(echo stats; sleep 0.5) | nc -w1 ${HOSTSHORT} 11211 | tr -d "\r\n"`; echo "host,${MCHEADER}" | sed -e 's/STAT \([a-z_]\+\) [0-9.]\+/\1,/g;s/,END//'; while [ 1 = 1 ]; do MCSTATS=`(echo stats; sleep ${MCINTERVAL}) | nc -w1 ${HOSTSHORT} 11211 | tr -d "\r\n"`; echo "${HOSTSHORT}${MCSTATS}" | sed -e 's/STAT [a-z_]\+ /,/g;s/END$//'; done | tee -a /mnt/tmp/sitename/memcache-logs.csv |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCyDCrrH+6VK5y21HxjvrstSnk0p2mdVmQg3rVjbx8/0vb/qPKC8TLM9fFCco0kVaUoojgjfgtaaMVTpOWrlJixtbQ//ItcRRehT3rkXfi/KPIbbq5kI+B2rk9+Hp2licXsWBlFy+fZYocjuTUpB+15jS4zjYrrnVkj18TFBqMXG2NXnIfwkWs3wL8bhlK/f1VP2cRcIKVQpzDmihAxossQw80bdkpZ16aZtfr8yodC2QfWSjqH54C6Ih8L07pYYloeY8sDfdPrm58FMYdW7fFdC0A4sguwC/NVpwVKUoZ8u/di0be6QJFp66/GHnixHRRGyqoxSQNCxmbPtVjnkr3FhPxi3BOvVlnr9WKgKZ/JSfUbOSNn0XXkwUhfJFXCmWHnnE/SvOeNw0HWnx8lDbTUtamashK8BLA7AqyDBKI8MaRw4P1LmKXVQNlDSDVSE38D+3FDQmiMlyJb6D0WfwR6XypgJEuOkBgUyDVYj4DjVdxruFbr0U6fqVkPT22D9f0AAEnGxJC8uU+J5Mnzu1cRsSSasjVdaYnSasuYpgzvcimJkKHAa+sS3HPnD2oIzzNSmK6Fw3TY1+KM/ldxWUorMT+YL4X8SNpGPgFvSNbISLr1N+hac/KUVbDzV51cHMlazsuhXUeg5j9aceCaGMBn3XhecNYg4xayWgkQTVOINw== jwebb |
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
// Devel 6.x-1.27's mail wrapper | |
// $conf['smtp_library'] is set to path/to/devel.module | |
// Only define our mail wrapper if the devel module is the current mail | |
// wrapper. | |
if (variable_get('smtp_library', '') == drupal_get_filename('module', 'devel')) { | |
/** | |
* Log the mails sent out instead of mailing. | |
*/ | |
function drupal_mail_wrapper($message) { |
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
# Personal Boxen Manifest | |
# File: /opt/boxen/repo/modules/people/manifests/webbj74.pp | |
# | |
# Requires the following added to Puppetfile: | |
# | |
# github "adium", "1.3.0" | |
# github "autoconf", "1.0.0" | |
# github "chrome", "1.1.2" | |
# github "fitbit", "1.0.0.9.1", :repo => "webbj74/puppet-fitbit" | |
# github "iterm2", "1.0.4" |
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
# | |
# OSX packet filter rules | |
# References: | |
# * https://gist.github.com/scy/8122924 | |
# | |
# The purpose of this config is to make sure that my system uses the | |
# privateInternetAccess VPN connection for everything and not to communicate | |
# unencrypted when the VPN connection goes down. Therefore, I block | |
# everything on the physical interfaces except for ICMP, DHCP, DNS and the |
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
# Problem: | |
# | |
# Behat tests fail with messages like: | |
# [curl] 28: Operation timed out after 30096 milliseconds with 0 bytes received | |
# | |
# Reason: | |
# | |
# By default, goutte sets CURLOPT_TIMEOUT to 30 seconds | |
# | |
# Solution: |
OlderNewer