Skip to content

Instantly share code, notes, and snippets.

View doostinharrell's full-sized avatar

Dustin Harrell doostinharrell

View GitHub Profile
#!/bin/sh
# This is usually run by the d_install script (https://gist.github.com/treall/240b8408cd944c17551a)
# This script will:
# make sure you're in the correct directory,
# download the latest drupal 7 release,
# install our frequently used modules,
# setup the admin account,
# create an Aurora subtheme,
# update the .htaccess file for use on our outdated dev server,
@doostinharrell
doostinharrell / drupal.sh
Last active July 28, 2017 14:45
drupal.sh - Drupal installation script
#!/bin/sh
#to run this command type: sh install.sh sitename
if [ -e $1 ];
then
echo "ERROR: please supply site name ie: thewiredmouse"
exit 1
fi
@doostinharrell
doostinharrell / setup.sh
Created May 11, 2015 22:25
setup.sh - The Wired Mouse development script
#!/bin/sh
#
# Read Me: To run this command type: sh setup.sh sitename cms
#
# Author: Dustin Harrell (The Wired Mouse)
# Version: 2.0.dev
# Description: Running this script will configure a new custom website for development within our development environment
#
if [ -e $1 ];
@doostinharrell
doostinharrell / dev.sh
Created May 11, 2015 22:26
dev.sh - Configure .htaccess for development environment
#!/bin/sh
#to run this command type: sh install.sh sitename
if [ -e $1 ];
then
echo "ERROR: please supply site name ie: thewiredmouse"
exit 1
fi
@doostinharrell
doostinharrell / live.sh
Created May 11, 2015 22:26
live.sh - Create .haccess files for live environments
#!/bin/sh
#to run this command type: sh install.sh sitename
if [ -e $1 ];
then
echo "ERROR: please supply site name ie: thewiredmouse"
exit 1
fi
@doostinharrell
doostinharrell / archive.sh
Last active August 29, 2015 14:21
archive.sh - Archive Drupal website for Pantheon.io Deployment
#!/bin/sh
#
# Read Me: To run this command type: sh archive.sh sitename
#
# Author: Dustin Harrell (The Wired Mouse)
# Version: 1.0.dev
# Description: Running this script will create archived zip files for deployment on Pantheon.io
#
if [ -e $1 ];
@doostinharrell
doostinharrell / drupal-npm.sh
Created July 19, 2015 19:36
drupal-npm.sh - Fixes Drupal issues with .info files inside node_modules folder
#!/bin/bash
#
# Run this shell script to resolve drupal npm issues for the project
#
# Author: Dustin Harrell - https://github.com/doostinharrell/
# Version: 1.0
#
# Resolving issues with Drupal looking at node_module info files
@doostinharrell
doostinharrell / fish_notify.fish
Created December 8, 2015 17:13
Receive completion notifications for long running commands.
# This file should be placed in ~/.config/fish/functions/fish_notify.fish
function fish_right_prompt
if test $CMD_DURATION
# Store duration of last command
set duration (echo "$CMD_DURATION 1000" | awk '{printf "%.3fs", $1 / $2}')
# OS X notification when a command takes longer than notify_duration
set notify_duration 10000
set exclude_cmd "zsh|bash|less|man|more|ssh|drush php"
@doostinharrell
doostinharrell / drupal6.settings.php
Last active March 25, 2019 20:22
Drupal 6 settings.php
<?php
// Database configuration.
$db_host = 'database';
$db_username = 'drupal6';
$db_password = 'drupal6';
$db_database = 'drupal6';
$db_url = 'mysql://' . $db_username . ':' . $db_password . '@' . $db_host . '/' . $db_database;
// Update settings.php for local lando dev.
@doostinharrell
doostinharrell / drupal7.settings.php
Last active December 13, 2017 16:31
Drupal 7 settings.php
<?php
// Database configuration.
$databases = array();
$databases['default']['default'] = array(
'driver' => 'mysql',
'host' => 'mysql',
'username' => 'mysql',
'password' => 'mysql',
'database' => 'data',