Skip to content

Instantly share code, notes, and snippets.

View doostinharrell's full-sized avatar

Dustin Harrell doostinharrell

View GitHub Profile
@doostinharrell
doostinharrell / wp-config.php
Created March 20, 2019 19:20
lando wp-config.php
<?php
/**
* Local configuration information.
*
* If you are working in a local/desktop development environment and want to
* keep your config separate, we recommend using a 'wp-config-local.php' file,
* which you should also make sure you .gitignore.
*/
if (file_exists(dirname(__FILE__) . '/wp-config-local.php')) {
@doostinharrell
doostinharrell / .bash_profile
Created February 27, 2019 16:10
AshevilleWebsiteHosting.net Bash Profile
// Create Aliases for Composer Dependencies
PATH=$PATH:$HOME/bin:$HOME/vendor/bin
export PATH

Keybase proof

I hereby claim:

  • I am doostinharrell on github.
  • I am doostinharrell (https://keybase.io/doostinharrell) on keybase.
  • I have a public key ASD4R1d5CCiXHiVZDP21rtPRxYC7T-QRdjjXSVIyvMHLaQo

To claim this, I am signing this object:

@doostinharrell
doostinharrell / drupal-commerce-clean.php
Created February 9, 2017 21:55
Clean out a Drupal Commerce installation
<?php
// Deletes all user, term, node, and commerce data to clean out a website.
$entity_types = array(
'user' => array(
'entity_type' => 'user',
'id_field' => 'uid',
),
'taxonomy_term' => array(
@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',
@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 / 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 / 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 / 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 / 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