This file contains 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 | |
#------------------------------- | |
# Local Development | |
#------------------------------- | |
function add_new_host () { | |
read -p "New local site name: " SITE | |
HOSTS='/etc/hosts' | |
SITEPATH='/Applications/MAMP/htdocs/'${SITE} |
This file contains 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 | |
#------------------------------- | |
# A 'better' git status information | |
alias gss='git status -s' | |
# Git add, commit with message, and push | |
alias gacp=git_add_all_commit_push | |
function git_add_all_commit_push () { | |
git add --all; |
This file contains 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
<?php | |
/* | |
* Name: Drush Alias Wildcard | |
* | |
* Description: When working on Enjoy Creativity's server, you | |
* can always assume the connection information is the same, | |
* except for the project name. Once you set up your | |
* ~/.ssh/config to use the hostname for the project, this | |
* command will let you sync the database or files directory | |
* between local and dev. |
This file contains 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 DEV WORKFLOW | |
# | |
# These commands all have to do with our development server on its.allgoo.de, which takes advantage | |
# of the excellent Git Dev Workflow by EOSREI (https://github.com/eosrei/git-dev-workflow). The first | |
# two commands assume that you have your .ssh/config file set up properly and the last command assumes | |
# that you have your custom Drush aliases file set up (https://gist.github.com/davidneedham/6301151). | |
#------------------------------- | |
# Generate the uli for a particular allgoo.de client site | |
function gdw-uli () { |
This file contains 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
This document is used to outline what patches have been applied to core, | |
modules or themes on this website. For more information, please check out | |
http://www.jenlampton.com/blog/sustainable-development-workflow-patching. | |
Core patches: | |
=============== | |
This file contains 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
# This document will let you type "ssh example" | |
# and automatically load in the connection | |
# details. This saves a ton of time and is highly | |
# recommended. For more information check out | |
# http://linux.die.net/man/5/ssh_config | |
################# | |
# Other clients # | |
################# | |
Host example |
This file contains 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
[mysql] | |
user=root | |
password=root | |
[mysqldump] | |
user=root | |
password=root |
This file contains 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
<?php | |
/** | |
* A gdw.settings.php files for local D7 development. Store in /var/www. | |
*/ | |
// Site is stored in '/var/www/example', so database name is 'example' | |
$database = basename(getcwd()); | |
$databases = array ( | |
'default' => array ( |
This file contains 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
http://www.gitref.org | |
----------------------------------------- | |
Facts: | |
----------------------------------------- | |
Git makes it really easy to use version control for everything, not just project files. (ie. Aarons personal computer configuration settings.) | |
Commit IDs are hash's, commonly referred to by the first 4 or first 8 chars | |
There is a .git folder at the root of the repository, not within every subdirectory. However, you can still do commands within any subdirectory from root. |
This file contains 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
# THIS FILE IS OLD AND EXISTS AT THIS POINT FOR EDUCATIONAL PURPOSES ONLY. | |
# For the latest version, check https://gist.github.com/davidneedham/4014378. | |
# Refresh the local environment from dev | |
# ex: gdw-cc projectname dev | |
# function gdw-cc () { | |
# ssh -t "$1" gdw-drush "$2" cc all; | |
# } |
OlderNewer