Skip to content

Instantly share code, notes, and snippets.

View dhaley's full-sized avatar

Damon Haley dhaley

  • National Renewable Energy Laboratory
  • Lafayette, CO
View GitHub Profile
~/data/releases/drupal8/current/sites/default% boris
<h1>Additional uncaught exception thrown while handling exception.</h1><h2>Original</h2><p>PDOException: SQLSTATE[HY000] [2002] No such file or directory in Symfony\Component\DependencyInjection\ContainerBuilder-&gt;createService() (line 959 of /Users/daha1836/data/releases/drupal8/8.x/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php).</p><h2>Additional</h2><p>PDOException: SQLSTATE[HY000] [2002] No such file or directory in Symfony\Component\DependencyInjection\ContainerBuilder-&gt;createService() (line 959 of /Users/daha1836/data/releases/drupal8/8.x/core/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/ContainerBuilder.php).</p><hr />%
@dhaley
dhaley / gist:6814308
Created October 3, 2013 18:10
full env at line 519 in command.inc
[-] Locals
|-[-] $command[30]
| |- description Show drush version.
| |- bootstrap 0
| |-[-] options[12]
| | |- pipe Print just the version number, and nothing else.
| | |-[-] format[2]
| | | |- description Select output format. Available: json, string, var_export, yaml. Default is key-value.
| | | `- example-value json
| | |-[-] fields[4]
@dhaley
dhaley / gist:6812656
Last active December 24, 2015 14:29
emacs geben xdebug of drush.php context of DRUSH_PIPE
[-] Locals
|-[-] $cache[59]
| |- argc 2
| |-[-] argv[2]
| | |- 0 /Users/daha1836/src/drush/drush.php
| | `- 1 --version
| |- DRUSH_BOOTSTRAP_PHASE 0
| |- process[0]
| |-[-] cli[1]
| | `- version true
@dhaley
dhaley / gist:6812552
Created October 3, 2013 16:17
xdebug from emacs at $list = drush_commandfile_list();
[-] Locals
|- $accumulated_result(undef)
|- $all_available_hooks[0]
|- $args[0]
|- $available_rollbacks[0]
|- $callback_list(undef)
|-[-] $command[30]
| |- description Show drush version.
| |- bootstrap 0
| |-[-] options[12]
@dhaley
dhaley / gist:6801986
Created October 2, 2013 23:19
Print normal EOLs with php
<?php
print "this is a line with unix style eols\n";
@dhaley
dhaley / gist:6273834
Created August 19, 2013 20:36
php-auto-yasnipper after running yas/create-php-snippet
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
string-match("[ \f \n
]+" nil 0)
split-string(nil)
(let* ((input-chunks (split-string input)) (function-or-method-name (first input-chunks)) (class-name (or (second input-chunks) ""))) (call-process php-executable nil (current-buffer) nil php-auto-yasnippet-php-program function-or-method-name class-name))
(progn (let* ((input-chunks (split-string input)) (function-or-method-name (first input-chunks)) (class-name (or (second input-chunks) ""))) (call-process php-executable nil (current-buffer) nil php-auto-yasnippet-php-program function-or-method-name class-name)))
(unwind-protect (progn (let* ((input-chunks (split-string input)) (function-or-method-name (first input-chunks)) (class-name (or (second input-chunks) ""))) (call-process php-executable nil (current-buffer) nil php-auto-yasnippet-php-program function-or-method-name class-name))) (set-match-data save-match-data-internal (quote evaporate)))
(let ((save-match-data-internal (m
@dhaley
dhaley / gist:6064668
Created July 23, 2013 18:03
git-gutter+ and symlinks
Debugger entered--Lisp error: (wrong-number-of-arguments nil 0)
signal(wrong-number-of-arguments (nil 0))
(if (= (length --cl-rest--) 2) (car (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))
(let* ((--cl-rest-- (git-gutter+-diff curfile)) (diff-header (if (= (length --cl-rest--) 2) (car (prog1 --cl-rest-- (setq --cl-rest-- (cdr --cl-rest--)))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))) (diffinfos (car --cl-rest--))) (setq git-gutter+-diff-header diff-header git-gutter+-diffinfos diffinfos) (save-restriction (widen) (funcall git-gutter+-view-diff-function diffinfos)))
(progn (let* ((--cl-rest-- (git-gutter+-diff curfile)) (diff-header (if (= (length --cl-rest--) 2) (car (prog1 --cl-rest-- (setq --cl-rest-- ...))) (signal (quote wrong-number-of-arguments) (list nil (length --cl-rest--))))) (diffinfos (car --cl-rest--))) (setq git-gutter+-diff-header diff-header git-gutter+-diffinfos dif
@dhaley
dhaley / gist:5870322
Created June 26, 2013 18:54
org-jia backtrace
Debugger entered--Lisp error: (error "Error retrieving WSDL: 400")
signal(error ("Error retrieving WSDL: 400"))
error("Error retrieving WSDL: %s" 400)
soap-load-wsdl-from-url("https://cuboulder.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl")
(setq jiralib-wsdl (soap-load-wsdl-from-url (if (string-equal jiralib-wsdl-descriptor-url "") (concat jiralib-url "/rpc/soap/jirasoapservice-v2?wsdl") jiralib-wsdl-descriptor-url)))
jiralib-load-wsdl()
(if jiralib-wsdl nil (jiralib-load-wsdl))
jiralib-login("foo" "foo")
call-interactively(jiralib-login)
(if jiralib-token nil (call-interactively (quote jiralib-login)))
@dhaley
dhaley / gist:5870211
Last active December 19, 2015 00:39
emacs-jira debug message
Debugger entered--Lisp error: (error "Error retrieving WSDL: 400")
signal(error ("Error retrieving WSDL: 400"))
error("Error retrieving WSDL: %s" 400)
soap-load-wsdl-from-url("https://cuboulder.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl")
(setq jiralib-wsdl (soap-load-wsdl-from-url (if (string-equal jiralib-wsdl-descriptor-url "") (concat jiralib-url "/rpc/soap/jirasoapservice-v2?wsdl") jiralib-wsdl-descriptor-url)))
jiralib-load-wsdl()
(if jiralib-wsdl nil (jiralib-load-wsdl))
jiralib-login("foo" "pass")
call-interactively(jiralib-login)
ido-hacks-execute-extended-command(nil)
@dhaley
dhaley / gist:5870017
Last active December 19, 2015 00:39
jira soap login issue
Debugger entered--Lisp error: (error "Error retrieving WSDL: 400")
signal(error ("Error retrieving WSDL: 400"))
error("Error retrieving WSDL: %s" 400)
soap-load-wsdl-from-url("https://cuboulder.atlassian.net/rpc/soap/jirasoapservice-v2?wsdl")
(setq jiralib-wsdl (soap-load-wsdl-from-url (if (string-equal jiralib-wsdl-descriptor-url "") (concat jiralib-url "/rpc/soap/jirasoapservice-v2?wsdl") jiralib-wsdl-descriptor-url)))
jiralib-load-wsdl()
(if jiralib-wsdl nil (jiralib-load-wsdl))
jiralib-login("foo" "foo")
call-interactively(jiralib-login)
ido-hacks-execute-extended-command(nil)