Skip to content

Instantly share code, notes, and snippets.

View scottalan's full-sized avatar

Scott Alan Henry scottalan

View GitHub Profile
@scottalan
scottalan / sqlbackup-s3.sh
Created November 4, 2014 15:46
Amazon S3 Database Backup
#!/bin/bash
# Make directories: log and backup at the $DIR.
# Move the '.s3cfg' file to the $DIR as well.
# NOTE: CHANGE ALL VARIABLES TO MATCH YOUR NEEDS!
# The name of the s3 bucket on Amazon.
S3BUCKET="REPLACE_BUCKET_NAME"
Component type: uuid_fpp
),
1 => array(
< 'admin_title' => '(about) Body text',
< 'bundle' => 'text',
< 'category' => 'Reusable Content',
< 'created' => 1409772563,
< 'field_basic_text_text' => array(
< 'und' => array(
< 0 => array(
@scottalan
scottalan / contribs.sh
Last active August 29, 2015 14:04
Drush make hanging...
This is my simple make file I'm trying to test:
------------------------------------------------
api = 2
core = 7.x
projects[addressfield][version] = "1.0-beta5"
projects[addressfield][subdir] = "contrib"
projects[addressfield_tokens][version] = "1.4"
projects[addressfield_tokens][subdir] = "contrib"
@scottalan
scottalan / output
Created July 18, 2014 22:15
drush make hanging
Bootstrap to phase 0. [0.02 sec, 2.17 MB] [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 2.31 MB] [bootstrap]
Loading drushrc "/var/www/cedijournal/public/sites/all/drush/drushrc.php" into "drupal" scope. [0.03 sec, 2.32 MB] [bootstrap]
Cache HIT cid: 5.9-commandfiles-0-d329cf8e5e828cd4fe0ec1004a7ee620 [0.05 sec, 2.33 MB] [debug]
Bootstrap to phase 0. [0.15 sec, 5.34 MB] [bootstrap]
Bootstrap to phase 0. [0.22 sec, 5.34 MB] [bootstrap]
Found command: make (commandfile=make) [0.23 sec, 5.34 MB]
@scottalan
scottalan / site-install
Last active August 29, 2015 14:03
Panopoly Drush Site-Install
WD system: migrate module enabled. [100.2 sec, 152.78 MB] [info]
WD system: panopoly_demo module installed. [100.56 sec, 152.91 MB] [info]
WD php: MigrateException: No migration found with machine name PanopolyDemoNode in MigrationBase::getInstance() (line 444 of [error]
/var/drupal/test-cedicp.dev/public/profiles/panopoly/modules/contrib/migrate/includes/base.inc). [100.6 sec, 151.65 MB]
MigrateException: No migration found with machine name PanopolyDemoNode in MigrationBase::getInstance() (line 444 of /var/drupal/test-cedicp.dev/public/profiles/panopoly/modules/contrib/migrate/includes/base.inc).
Drush command terminated abnormally due to an unrecoverable error. [100.6 sec, 151.64 MB] [error]
php -i | grep 'Configure Command =>' | awk '{for(i=5; i<=NF; i++) {print substr($i, 2, (length($i) - 2))}}'
$(".flex-grid").find("img").each(function () {
this.width = (this.width + 10);
});
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see the current branch in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace