Skip to content

Instantly share code, notes, and snippets.

View jalama's full-sized avatar

Jim Taylor jalama

  • Workstate Consulting LLC
  • Columbus, OH USA
View GitHub Profile
@jalama
jalama / keybase.md
Created February 7, 2018 18:36
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 July 12, 2016 20:05 — forked from aklump/drupal.arg.js
Add Drupal.arg() for parsing urls in Drupal
/**
* 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
# 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 October 19, 2023 06:18 — forked from oodavid/README.md
Backup MySQL to Amazon S3

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

$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'service',
'username' => 'root',
'password' => 'root',
'host' => 'localhost',
'port' => '',
{
"modelNumber": "AATHS4",
"serialNumber": "16020002",
"REVRaw": {
"type": "Buffer",
"data": [
68,
48,
48,
5
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
# 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:
# 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:
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)