Skip to content

Instantly share code, notes, and snippets.

View petercossey's full-sized avatar

Peter Cossey petercossey

View GitHub Profile
@petercossey
petercossey / vhosts-boilerplate
Created May 7, 2012 07:30
Apache vhosts boilerplate
<VirtualHost *:80>
ServerAdmin user@host
ServerName some.hostname.com
DocumentRoot /path/to/root/dir
<Directory /path/to/root/dir>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@sprice
sprice / default_images.php
Created March 8, 2012 19:54
Provide image field default images in Drupal 7
<?php
// General function in base feature or custom module.
/**
* Return a file object after saving a default image and storing the fid
* in a variable.
*
* @param $default_image
* An associative array containing: