Skip to content

Instantly share code, notes, and snippets.

Jim Taylor jalama

  • Able Applied Technologies
  • Columbus, OH USA
View GitHub Profile
jalama / Dynamic Drush Alias script
Last active Aug 29, 2015
Dynamic Drush aliases
View Dynamic Drush Alias script
$path = '/var/www';
$driver = 'mysql';
$port = '3306';
$host = '';
$webroot = '';
$aliases = array();
$dir_handle = new DirectoryIterator($path);
jalama / gist:bf3713481b1657f90f1c
Created Jan 19, 2015
Drush sql-create --db-su doesn't work with empty root passwords
View gist:bf3713481b1657f90f1c
The crux is drush doesn't pick up the super user from the CLI, using --db-su, unless there is a ~/.my.cnf
nor does it pick it up from the alias file at all.
My environment is a Mac with Mountain Lion MYSQL install using Homebrew
mysql --version:
Ver 14.14 Distrib 5.6.19, for osx10.9 (x86_64)
php --version
PHP 5.4.30 (cli) (built: Jul 29 2014 23:43:29)
jalama / gist:ad5e60538ce4e69e4028
Created Jan 6, 2015
Sublime package control sublime-settings
View gist:ad5e60538ce4e69e4028
// A list of URLs that each contain a JSON file with a list of repositories.
// The repositories from these channels are placed in order after the
// repositories from the "repositories" setting
"channels": [
// A list of URLs that contain a packages JSON file. These repositories
// are placed in order before repositories from the "channels"
jalama / Package Control.sublime-settings
Last active Aug 29, 2015
Sublime Package Control User
View Package Control.sublime-settings
"All Autocomplete",
"Auto Semi-Colon",
jalama / config.yaml
Created Aug 8, 2014
puphpet Drupal 8 config.yaml
View config.yaml
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
hostname: null
memory: '512'
cpus: '1'
chosen_provider: virtualbox
View gist:cee3a6d611e677125f5b
diff --git a/modules/commerce_exactor_calc/commerce_exactor_calc.module b/modules/commerce_exactor_calc/commerce_exactor_calc.module
index e3cb463..e99cf27 100644
--- a/modules/commerce_exactor_calc/commerce_exactor_calc.module
+++ b/modules/commerce_exactor_calc/commerce_exactor_calc.module
@@ -6,6 +6,51 @@
+ * Implemments hook_form_FORM_ID_alter().
+ */
jalama / Ruby set-up
Last active Dec 12, 2015
Cucumber set-up
View Ruby 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"
jalama / gitconfig
Last active Jan 4, 2018
Github aliases
View gitconfig
name = Your Name
email =
editor = vim
excludesfile = ~/.gitignore
filemode = false
symlinks = true
autocrlf = false
You can’t perform that action at this time.