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 / 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

@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 / gitconfig
Last active January 4, 2018 12:53
Github aliases
[user]
name = Your Name
email = xxx@example.com
[core]
editor = vim
excludesfile = ~/.gitignore
filemode = false
symlinks = true
autocrlf = false
[merge]
@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 && \
$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
@jalama
jalama / Ruby set-up
Last active December 12, 2015 01:38
Cucumber set-up
ruby "1.9.3"
source :rubygems
gem "capybara"
gem "cucumber"
gem "rspec"
gem "sinatra"
gem "benchmark-ips"
gem "thin"
gem "poltergeist", :path => "../gems/poltergeist"
gem "http_parser.rb"
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: