Skip to content

Instantly share code, notes, and snippets.

View GloryFish's full-sized avatar

Jay Roberts GloryFish

View GitHub Profile
@kostajh
kostajh / fix-permissions.sh
Created August 20, 2012 13:03
Securing file permissions and ownership for Drupal
#!/bin/bash
# This script is from [Securing file permissions and ownership](https://drupal.org/node/244924)
DRUPAL_PATH=${1%/}
DRUPAL_USER=${2}
APACHE_GROUP="www-data"
HELP="\nHELP: This script is used to fix permissions of a drupal installation\nyou need to provide the following arguments:\n\t 1) path to your drupal installation\n\t 2) Username of the user that you want to give files/directories ownership\nNote: \"www-data\" (apache default) is assumed as the group the server is belonging to, if this is different you need to modify it manually by editing this script\n\nUsage: (sudo) bash ${0##*/} drupal_path user_name\n"
if [ -z "${DRUPAL_PATH}" ] || [ ! -d "${DRUPAL_PATH}/sites" ] || [ ! -f "${DRUPAL_PATH}/modules/system/system.module" ]; then
@kostajh
kostajh / ac-issue.sublime-snippet
Created August 15, 2012 17:25
activeCollab issue template
<snippet>
<content><![CDATA[
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h4 id="summary-dh-tasks">DH Tasks</h4>