Skip to content

Instantly share code, notes, and snippets.

View petercossey's full-sized avatar

Peter Cossey petercossey

View GitHub Profile
@petercossey
petercossey / drush-qd-togmine.sh
Created July 10, 2012 06:44
Quick togmine Drupal
# Replace --db-url parameter with your own details.
# Drush will prompt you regarding further module dependencies.
drush qd site-folder togmine toggl redmine --no-server --db-url=mysql://user:pass@localhost/database --core=drupal-6.
@petercossey
petercossey / 400450-disabled-node-types.sh
Created July 17, 2012 03:01
Drush core-quick-drupal install for core office hours
drush qd 400450-disabled-node-types --dev --cache --core=drupal-8.x --package-handler=git_drupalorg
@petercossey
petercossey / teamevent.build
Created July 19, 2012 15:26
Team Event drush make build stub
; Include Build Kit install profile makefile
includes[] = http://drupalcode.org/project/buildkit.git/blob_plain/refs/heads/7.x-2.x:/distro.make
; Team Event profile
projects[teamevent][type] = profile
projects[teamevent][download][type] = git
projects[teamevent][download][url] = git@github.com:thislittleduck/teamevent.git
projects[teamevent][download][branch] = develop
@petercossey
petercossey / acme.build
Created September 6, 2012 04:05
Art Post build stub
; Include Build Kit distro makefile via URL
includes[] = http://drupalcode.org/project/buildkit.git/blob_plain/refs/heads/7.x-2.x:/distro.make
; Installation Profile
projects[acme][type] = "profile"
projects[acme][download][type] = "git"
projects[acme][download][url] = "git@github.com:thislittleduck/artpost.git"
projects[acme][download][branch] = "master"
@petercossey
petercossey / gist:3992955
Created November 1, 2012 10:26
Drupal Deployment Notes
Drupal Deployment using Drush
=============================
Deploying a Drupal site means transporting a codebase to a target host and installing the site using a database.
Concepts:
- Build: build a codebase and all the dependencies
- Deploy: transport the codebase onto a remote machine
- Install: Install the software
- Migrate (borrowed from Aegir): Migrate an existing database into a new codebase.
- Re-configure web server: ?
@petercossey
petercossey / wp_fabfile.py
Created November 1, 2012 12:15 — forked from YellowSharkMT/wp_fabfile.py
Wordpress Fabfile
# Wordpress Fabfile, for migrating the database, and deploying w/ git.
# For background: "My New & Improved Fabfile for Deploying WordPress"
# http://wp.me/p2a3Vy-1b
#
# This fabfile is specifically-geared for our unique setup, which consists
# of 2 servers (local, remote), and 3 sites (local, dev, and prod). Dev and
# prod sites both live on the remote server.
#
# In general, a little bit of the programming happens on a local site,
# but the database updates and file uploads (both in Wordpress, and edits
@petercossey
petercossey / build-recpost.make
Last active October 13, 2015 03:38
Rec Post build stub
; This file describes the core project requirements for Rec Post
;
; Use this file to build a full project including Drupal core (with patches)
; and the Rec Post install profile using the following command:
;
; $ drush make build-recpost.make [directory]
api = 2
core = 7.x
; This file describes the core project requirements for Open Futures
;
; Use this file to build a full project including Drupal core (with patches)
; and the Rec Post install profile using the following command:
;
; $ drush make build-openfutures.make [directory]
api = 2
core = 7.x
@petercossey
petercossey / welcome_text_search_form.inc
Last active August 29, 2015 14:02
A panels content plugin for displaying some text and an image.
<?php
/**
* @file
* Welcome text and search form content plugin.
*/
$plugin = array(
'title' => t('Welcome text search form'),
'single' => TRUE,
'category' => array(t('Content widgets'), -9),
@petercossey
petercossey / AWSELB
Created October 20, 2014 10:47
Firefox AWS cookie
81172F0D14F7AF09D6E05F31DCDA866D7CD7FC9158734F6CBFBDA124915091C3EFB07E0A2ABE5FF6A5FDA336EA8453AA1C5D509D88374963092FFD73D8A76F1A779378D89E