Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
if [ $(id -u) != 0 ]; then
printf "This script must be run as root.\n"
exit 1
fi
drupal_path=${1%/}
drupal_user=${2}
httpd_group="${3:-www-data}"
@l3lake
l3lake / .gitconfig
Last active August 29, 2015 14:04 — forked from fideloper/.gitconfig
[user]
name = Blake
email = Email
[color]
ui = true
[github]
user = l3lake
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
@l3lake
l3lake / usevm.md
Created July 24, 2014 04:44 — forked from fideloper/usevm.md

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

server {
listen 80;
listen [::]:80 ipv6only=on;
server_name www.example.com;
root /var/www/vhosts/example.com/public/;
location /
{
@l3lake
l3lake / .vimrc.after
Last active August 29, 2019 14:39 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set laststatus=2 " Always show the statusline
set encoding=utf-8 " Necessary to show Unicode glyphs
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
" gui settings
set guifont=Menlo\Regular:h16