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
@jalama
jalama / Dynamic Drush Alias script
Last active Aug 29, 2015
Dynamic Drush aliases
View Dynamic Drush Alias script
<?php
$path = '/var/www';
$driver = 'mysql';
$port = '3306';
$host = '127.0.0.1';
$webroot = '';
$aliases = array();
$dir_handle = new DirectoryIterator($path);
@jalama
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
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": [
"https://packagecontrol.io/channel_v3.json"
],
// A list of URLs that contain a packages JSON file. These repositories
// are placed in order before repositories from the "channels"
@jalama
jalama / Package Control.sublime-settings
Last active Aug 29, 2015
Sublime Package Control User
View Package Control.sublime-settings
{
"in_process_packages":
[
],
"installed_packages":
[
"AdvancedNewFile",
"All Autocomplete",
"ApplySyntax",
"Auto Semi-Colon",
@jalama
jalama / config.yaml
Created Aug 8, 2014
puphpet Drupal 8 config.yaml
View config.yaml
---
vagrantfile-local:
vm:
box: puphpet/ubuntu1404-x64
box_url: puphpet/ubuntu1404-x64
hostname: null
memory: '512'
cpus: '1'
chosen_provider: virtualbox
network:
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
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
jalama / gitconfig
Last active Jan 4, 2018
Github aliases
View gitconfig
[user]
name = Your Name
email = xxx@example.com
[core]
editor = vim
excludesfile = ~/.gitignore
filemode = false
symlinks = true
autocrlf = false
[merge]
You can’t perform that action at this time.