Skip to content

Instantly share code, notes, and snippets.

Jim Taylor jalama

  • Able Applied Technologies
  • Columbus, OH USA
Block or report user

Report or block jalama

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am jalama on github.
  • I am jalama (https://keybase.io/jalama) on keybase.
  • I have a public key ASB4dJbnMqogWCcNdGTegpLat1vRbl4ys_hpBFB1sniqXwo

To claim this, I am signing this object:

@jalama
jalama / drupal.arg.js
Created Jul 12, 2016 — forked from aklump/drupal.arg.js
Add Drupal.arg() for parsing urls in Drupal
View drupal.arg.js
/**
* Adds method arg to the Drupal object for grabbing url args
*
* @author Aaron Klump, In the Loft Studios, LLC
* @see http://www.intheloftstudios.com
* @see http://gist.github.com/3078482
*
* For use in a theme or module add the following to your .info file
* @code
* scripts[] = [path to js dir]/drupal.arg.js
View Dockerfile
# from https://www.drupal.org/requirements/php#drupalversions
FROM php:7.0-apache
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN a2enmod rewrite
# install the PHP extensions we need
RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev libpq-dev openssh-server && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr && \
@jalama
jalama / README.md
Last active Apr 12, 2016 — forked from oodavid/README.md
Backup MySQL to Amazon S3
View README.md

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

View VVD settings.local.php Drupal 7
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'service',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
'port' => '',
View gist:c45502a27a7b65bac432
{
"modelNumber": "AATHS4",
"serialNumber": "16020002",
"REVRaw": {
"type": "Buffer",
"data": [
68,
48,
48,
5
View Drush get Drupal table list
drush sqlq "select distinct concat('describe ', table_name, ';') as query from information_schema.tables where table_schema='<db_name_here>'"| xargs -I % drush sqlq "%" > ~/tables.txt
View One commit per priject
# YAML
# Git Repo
repoDict:
value:
drupal: # ssh://<user>@example.com/<repo folder>
# Build related
workingBranch:
value: dev
# One Git commit per Drupal project (ie module/theme/core)
oneCommitPerProject:
View simple feature branch
# YAML
# Git Repo
repoDict:
value:
drupal: # ssh://<user>@example.com/<repo folder>
# Build related
workingBranch:
value: dev
# Create a Feature branch called drupdates in origin repo
useFeatureBranch:
View todo-list stack-trace
TypeError: Cannot read property 'prototype' of undefined
at __extends (/Users/jdtaylor/.atom/packages/todo-list/lib/todo-list-view.coffee:1:1)
at /Users/jdtaylor/.atom/packages/todo-list/lib/todo-list-view.coffee:5:3
at Object.<anonymous> (/Users/jdtaylor/.atom/packages/todo-list/lib/todo-list-view.coffee:267:5)
at Object.<anonymous> (/Users/jdtaylor/.atom/packages/todo-list/lib/todo-list-view.coffee:1:1)
at Module._compile (module.js:452:26)
at Object.require.extensions.(anonymous function) [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:166:19)
at Module.load (module.js:347:32)
at Function.Module._load (module.js:302:12)
at Module.require (module.js:357:17)
You can’t perform that action at this time.