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
$aliases['site.vm'] = array( | |
'env' => 'dev', | |
'site' => 'site', | |
'uri' => 'site.vm', | |
'root' => '/vagrant/www', | |
'remote-host' => 'site.vm', | |
'remote-user' => 'vagrant', | |
'ssh-options' => '-i ~/Clients/site/puphpet/files/dot/ssh/id_rsa', | |
'command-specific' => array( | |
'sql-dump' => 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 | |
while read p; do | |
if [ -d "/home/$p" ]; then | |
echo $p | |
if [ -d "/home/$p/public_html" ]; then | |
cd /home/$p/public_html | |
git init | |
git add . | |
git commit -am "first commit" |
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
server { | |
server_name [host]; | |
root /var/www/[document_root]; ## <-- Your only path reference. | |
# Enable compression, this will help if you have for instance advagg module | |
# by serving Gzip versions of the files. | |
gzip_static on; | |
location = /favicon.ico { |
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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'uat_iapo_drupal', | |
'username' => 'uat_dba', | |
'password' => '3W5LcJQv26DpxGMm', |
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 | |
if [[$BRANCH == '']]; then | |
GIT_BRANCH = "master" | |
else | |
GIT_BRANCH = $BRANCH | |
if | |
if [ -d "/tmp/clone/"]; then | |
rm -rf "/tmp/clone" |
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
# | |
# Apache/PHP/Drupal settings: | |
# | |
# Protect files and directories from prying eyes. | |
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\..*|Entries.*|Repository|Root|Tag|Template)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig\.save)$"> | |
Order allow,deny | |
</FilesMatch> | |
# Don't show directory listings for URLs which map to a directory. |
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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => 'uat_iapo_drupal', | |
'username' => 'uat_dba', | |
'password' => '3W5LcJQv26DpxGMm', |
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
# Ignore system files etc. | |
.DS_Store | |
.htaccess | |
.idea | |
whitefusestub.make | |
# Ignore paths that contain user-generated content. | |
sites/*/files | |
sites/*/private |
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 | |
define( 'CIVICRM_UF', 'Drupal' ); | |
define( 'CIVICRM_UF_DSN', 'mysql://' . $_SERVER['DB_USER'] . ':' . $_SERVER['DB_PASS'] . '@' . $_SERVER['DB_HOST'] . '/' . $_SERVER['DB_NAME'] . '?new_link=true'); | |
define( 'CIVICRM_DSN', 'mysql://' . $_SERVER['DB_CIVIUSER'] . ':' . $_SERVER['DB_CIVIPASS'] . '@' . $_SERVER['DB_CIVIHOST'] . '/' . $_SERVER['DB_CIVINAME'] . '?new_link=true' ); | |
define('CIVICRM_LOGGING_DSN', CIVICRM_DSN); | |
global $civicrm_root; | |
$site_root = '/Users/alastair/dev/clients/chagos/httdocs'; |
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 | |
$databases = array ( | |
'default' => | |
array ( | |
'default' => | |
array ( | |
'database' => getenv('DB_NAME'), | |
'username' => getenv('DB_USER'), | |
'password' => getenv('DB_PASS'), |