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 | |
if ($something) { | |
// Do something | |
if ($other_statment) { | |
// Do something else | |
} | |
else { | |
// Do something | |
} |
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
Host remoteaegirserver.something.edu | |
User aegir | |
Port 224 |
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
[aegir@bender ~]$ more .drush/appstate.drush.inc | |
<?php | |
function appstate_provision_apache_vhost_config($uri, $data) { | |
return array( | |
" # rewrites /sites/default/files to the new url", | |
" <IfModule mod_rewrite.c>", | |
" RewriteEngine On", | |
" RewriteRule ^/sites/default/files(/.*)$ sites/" . $uri . "/files$1 [R,L]", | |
" </IfModule>", | |
); |
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 | |
function appstate_provision_apache_vhost_config($uri, $data) { | |
return array( | |
" # rewrites /sites/default/files to the new url", | |
" <IfModule mod_rewrite.c>", | |
" RewriteEngine On", | |
" RewriteRule ^/sites/default/files(/.*)$ sites/" . $uri . "/files$1 [R,L]", | |
" </IfModule>" | |
); |
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
api = 2 | |
core = 7.x | |
projects[] = drupal | |
projects[openblog][type] = "profile" | |
projects[openblog][download][type] = "git" | |
projects[openblog][download][url] = "[email protected]:project/openblog.git" | |
projects[openblog][download][branch] = "7.x-1.x" |
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
[07-May-2012 14:44:17] PHP Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 19456 bytes) in /usr/local/Cellar/drush/5.1/libexec/includes/bootstrap.inc on line 1082 |
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
zach@brains /tmp » mkdir module_name | |
zach@brains /tmp » touch module_name/module_name.{info,module,install} | |
zach@brains /tmp » ls -alh module_name | |
total 0 | |
drwxr-xr-x 5 zach wheel 170B May 3 17:34 . | |
drwxrwxrwt 15 root wheel 510B May 3 17:33 .. | |
-rw-r--r-- 1 zach wheel 0B May 3 17:34 module_name.info | |
-rw-r--r-- 1 zach wheel 0B May 3 17:34 module_name.install | |
-rw-r--r-- 1 zach wheel 0B May 3 17:34 module_name.module |
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
find /var/aegir/backups -type f -mtime +10 -delete |
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 | |
DRUSH=/usr/local/bin/drush | |
PROJECTS=$HOME/projects/dev | |
for d in $(find $PROJECTS -type d -depth 1) | |
do | |
if [ -f $d/sites/default/settings.php ]; then | |
$DRUSH -r $d cron | |
fi |
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
<Location /> | |
AuthType Shibboleth | |
ShibRequireSession Off | |
# the following single line is only valid for Shib2 | |
ShibUseHeaders On | |
require shibboleth | |
</Location> | |
<LocationMatch /Shibboleth.sso(/*)> | |
AuthType shibboleth |
NewerOlder