Skip to content

Instantly share code, notes, and snippets.

View caseyamcl's full-sized avatar

Casey McLaughlin caseyamcl

View GitHub Profile
@caseyamcl
caseyamcl / drush_makefile
Created May 3, 2012 19:06
Casey's Drupal Development Kickstarter (ensure drush 5.x+ is installed first)
; ----------------
; Generated makefile from http://drushmake.me
; Permanent URL: http://drushmake.me/file.php?token=005dea072d80
; ----------------
;
; This is a working makefile - try it! Any line starting with a `;` is a comment.
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
@caseyamcl
caseyamcl / index.php
Created April 12, 2012 02:00
Casey's Development Server Homepage
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Development Server!</title>
<style type='text/css'>
h1, h2 {
font-family: Verdana, sans-serif;
text-align: center;
}
@caseyamcl
caseyamcl / where_exists.sql
Created October 11, 2011 13:18
MySQL WHERE Exists
SELECT * FROM orders AS orders_table
WHERE EXISTS
(
SELECT * FROM orders_actions AS actions_table
WHERE actions_table.orders_id = orders_table.id
AND
(
actions_table.action = 'order_created'
OR actions_table.action = 'order_pending'
)