Skip to content

Instantly share code, notes, and snippets.

View zachseifts's full-sized avatar
🏠
Working from home

Zach Seifts zachseifts

🏠
Working from home
  • Appalachian State University
  • Boone, NC
View GitHub Profile
<?php
if ($something) {
// Do something
if ($other_statment) {
// Do something else
}
else {
// Do something
}
Host remoteaegirserver.something.edu
User aegir
Port 224
[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>",
);
<?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>"
);
api = 2
core = 7.x
projects[] = drupal
projects[openblog][type] = "profile"
projects[openblog][download][type] = "git"
projects[openblog][download][url] = "notzach@git.drupal.org:project/openblog.git"
projects[openblog][download][branch] = "7.x-1.x"
[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
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
find /var/aegir/backups -type f -mtime +10 -delete
#!/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
<Location />
AuthType Shibboleth
ShibRequireSession Off
# the following single line is only valid for Shib2
ShibUseHeaders On
require shibboleth
</Location>
<LocationMatch /Shibboleth.sso(/*)>
AuthType shibboleth