This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git diff master --name-only | grep -E '(css|sass)' | xargs -I{} git checkout master {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Site install script that will download the latest version of drupal, create | |
# a database in mysql, use drush to perform a site install, download | |
# and enable some handy contrib modules, and disable a few annoying | |
# core module. | |
# | |
# Copy and paste this into a shell to execute: | |
# curl -s https://gist.github.com/delphian/6043424/raw/ | bash | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove the directories we are rebuilding | |
tar -czf /tmp/drush-backup-`date +%Y%m%d%H%M%S`.tar.gz modules libraries | |
rm -rf ./modules/contrib ./libraries | |
# Pull down the new code | |
drush make --yes --no-core --working-copy --contrib-destination=. ./site.make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; @file drush-example-site.make | |
; @author Bryan Hazelbaker <[email protected]> | |
; | |
; @brief Drush make file to be processed by the `drush make` command | |
; | |
; @details Running drush make on this configuration file will download | |
; all specified modules, themes, and libraries into their respective | |
; directories. the `drush` command must first be installed to process | |
; this make file. | |
; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git-Completion | |
#!bash | |
# | |
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00001 C Uniform PPCL Program Template 2.0. | |
00002 C Using the below template voids the need for goto statements. | |
00003 C Also, a software programmer that is unfamiliar with control work | |
00004 C will have an easier time examining this style of code. A modular | |
00005 C approach to coding is more standard in the software community; | |
00006 C though unfortunately virtually unheard of to a controls | |
00007 C programmer. The template begins at line 50. | |
00008 C | |
00008 C @see https://gist.github.com/delphian/5906264 | |
00009 C @see https://github.com/delphian/ppcl-library |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* Observer design pattern. | |
* | |
* This object will provide an observer design pattern. Observers may | |
* subscribe to specific message types. Observables may broadcast | |
* messages specific to a type. | |
* | |
* @author Bryan Hazelbaker <[email protected]> | |
* @version 1.0 |
NewerOlder