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
@dhaley
dhaley / gist:4708622
Created February 4, 2013 18:40
flycheck 3d98781ca72a41bc1a666e3e0d65aaa1fb0455c3 compilation buffer
-*- mode: compilation; default-directory: "~/data/releases/cu_vcr/current/" -*-
Compilation started at Mon Feb 4 11:38:54
php -l -d error_reporting\=E_ALL -d display_errors\=1 -d log_errors\=0 /Users/daha1836/data/releases/cu_vcr/current/foo.php
No syntax errors detected in /Users/daha1836/data/releases/cu_vcr/current/foo.php
Compilation finished at Mon Feb 4 11:38:55
@dhaley
dhaley / gist:4708643
Created February 4, 2013 18:43
3d98781ca72a41bc1a666e3e0d65aaa1fb0455c3 after flycheck-select-checker "phpcs"
-*- mode: compilation; default-directory: "~/data/releases/cu_vcr/current/" -*-
Compilation started at Mon Feb 4 11:41:46
phpcs --report\=emacs /Users/daha1836/data/releases/cu_vcr/current/foo.php
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:4:1: error - There must be exactly one blank line before the tags in file comment
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:9:1: warning - PHP version not specified
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:9:1: error - Missing @category tag in file comment
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:9:1: error - Missing @package tag in file comment
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:9:1: error - Missing @author tag in file comment
/Users/daha1836/data/releases/cu_vcr/dev/foo.php:9:1: error - Missing @license tag in file comment
@dhaley
dhaley / xml
Created February 5, 2013 19:37
results of C-x ! C-c
-*- mode: compilation; default-directory: "~/data/releases/cu_vcr/current/" -*-
Compilation started at Tue Feb 5 12:35:19
phpcs --report\=checkstyle /Users/daha1836/data/releases/cu_vcr/current/foo5.php
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="1.4.0">
<file name="/Users/daha1836/data/releases/cu_vcr/dev/foo5.php">
<error line="4" column="1" severity="error" message="There must be exactly one blank line before the tags in file comment" source="PEAR.Commenting.FileComment.SpacingBeforeTags"/>
<error line="9" column="1" severity="warning" message="PHP version not specified" source="PEAR.Commenting.FileComment.MissingVersion"/>
<error line="9" column="1" severity="error" message="Missing @category tag in file comment" source="PEAR.Commenting.FileComment.MissingTag"/>
@dhaley
dhaley / gist:4772491
Created February 12, 2013 19:15
doxygen generated tag file
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<tagfile>
<compound kind="file">
<name>vcr_content.install</name>
<path>/Users/daha1836/data/releases/cu_vcr/dev/profiles/cu_vcr/modules/custom/vcr_content/</path>
<filename>vcr__content_8install</filename>
<member kind="function">
<type></type>
<name>vcr_content_install</name>
<anchorfile>vcr__content_8install.html</anchorfile>
@dhaley
dhaley / gist:4773102
Created February 12, 2013 20:30
doxygen setup
(custom-set-variables
'(doxymacs-doxygen-dirs (quote (("^/Users/daha1836/data/releases/cu_vcr/current/profiles/cu_vcr/modules/custom/vcr_content/" "/Users/daha1836/data/releases/cu_vcr/current/profiles/cu_vcr/modules/custom/vcr_content/vcr_content.xml" "file:///Users/daha1836/data/releases/cu_vcr/current/profiles/cu_vcr/modules/custom/vcr_content/docs/html")))))
(require 'doxymacs)
(add-hook 'php-mode-hook 'doxymacs-mode)
(defun my-doxymacs-font-lock-hook ()
(if (or (eq major-mode 'php-mode) (eq major-mode 'php+-mode))
(doxymacs-font-lock)))
(add-hook 'font-lock-mode-hook 'my-doxymacs-font-lock-hook)
@dhaley
dhaley / gist:4942308
Last active December 13, 2015 16:39
php-extras-eldoc-functions.el
;;; php-extras-eldoc-functions.el -- file auto generated by `php-extras-generate-eldoc'
(require 'php-extras)
(setq php-extras-function-arguments #s(hash-table size 4400 test equal rehash-size 100 rehash-threshold 1.0 data ("apc_add" "bool apc_add ( string $key [, mixed $var [, int $ttl = 0 ]] )" "apc_bin_dump" "string apc_bin_dump ([ array $files [, array $user_vars ]] )" "apc_bin_dumpfile" "int apc_bin_dumpfile ( array $files , array $user_vars , string $filename [, int $flags = 0 [, resource $context ]] )" "apc_bin_load" "bool apc_bin_load ( string $data [, int $flags = 0 ] )" "apc_bin_loadfile" "bool apc_bin_loadfile ( string $filename [, resource $context [, int $flags ]] )" "apc_cache_info" "array apc_cache_info ([ string $cache_type [, bool $limited = false ]] )" "apc_cas" "bool apc_cas ( string $key , int $old , int $new )" "apc_clear_cache" "bool apc_clear_cache ([ string $cache_type ] )" "apc_compile_file" "mixed apc_compile_file ( string $filename [, bool $atomic = true ] )" "apc_dec" "int apc_de
@dhaley
dhaley / gist:4996434
Created February 20, 2013 15:38
term message when using solarized-dark
Debugger entered--Lisp error: (wrong-type-argument symbolp "#002b36")
internal-get-lisp-face-attribute("#002b36" :foreground nil)
face-attribute("#002b36" :foreground nil default)
face-foreground("#002b36" nil default)
term-handle-colors-array(1)
term-handle-ansi-escape(#<process terminal> 109)
term-emulate-terminal(#<process terminal> "%
")
(require 'network-speed)
(setq network-speed-update-interval 5)
(setq network-speed-precision 1)
(setq network-speed-interface-list (if (string= (shell-command-to-string "ifconfig | grep en1") "")
'("en0")
'("en1")))
(setq network-speed-format-string "%NI#%RB#%TB#%RX#%TX#%AX")
(network-speed-start)
@dhaley
dhaley / gist:5373463
Created April 12, 2013 16:57
OS X ifconfig output
daha1836@haley:~/.emacs.d% ifconfig en0
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4>
ether 40:6c:8f:44:44:b6
media: autoselect (none)
status: inactive
daha1836@haley:~/.emacs.d% ifconfig en1
en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 7c:d1:c3:7f:e3:fa
inet6 fe80::7ed1:c3ff:fe7f:e3fa%en1 prefixlen 64 scopeid 0x5
@dhaley
dhaley / gist:5687871
Created May 31, 2013 20:49
Get drush pcomplete working in eshell
(defun pcmpl-drush-commands ()
"Return the most common drush commands by parsing the drush output."
(with-temp-buffer
(call-process-shell-command "drush" nil (current-buffer) nil "help")
(goto-char 0)
(search-forward "Core drush commands: (core)")
;; (search-forward "available drush commands in")
(let (commands)
(while (re-search-forward
"^[[:blank:]]\\([[:word:]-.]+\\)"