Skip to content

Instantly share code, notes, and snippets.

/**
* Base class for command line applications.
*
* Children can provide functionality in the form of
* <command name> <arguments...>
*
* @author Ben Fagin
* @author Patrick Aikens
*/
class GroovyCLI implements Runnable {
@duckpuppy
duckpuppy / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@duckpuppy
duckpuppy / groovyindent-neobundle.vim
Created July 10, 2015 16:29
The groovyindent Vim plugin has Windows line endings, which messes up when loading Vim on non-Windows Vim instances. This will run dos2unix on the file when installed via NeoBundle.
NeoBundle 'vim-scripts/groovyindent', {
\ 'build' : {
\ 'unix' : 'dos2unix indent/*',
\ },
\ }
require 'haml'
require 'rake/clean'
CLEAN.include( '_site' )
CLOBBER.include( '_cache' )
# We create a FileList from the existing Haml layouts in _layouts/haml
HAML = FileList['_layouts/haml/*.haml']
# We use the Haml FileList to create an HTML FileList, modifying the path of each
# entry to be in the _layouts folder instead of _layouts/haml
@duckpuppy
duckpuppy / compass.rb
Created October 24, 2011 03:34
Jekyll Haml and Compass extensions
begin
require 'compass'
require 'compass/exec'
rescue LoadError
require 'rubygems'
require 'compass'
require 'compass/exec'
end
module Jekyll

Dark version

wget --no-check-certificate https://raw.github.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`

git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized
./set_dark.sh
{
"working_dir": "${project_path:${folder}}",
"shell_cmd": "mvn -fae clean install"
}
if &compatible
set nocompatible " Be iMproved
endif
set runtimepath^=~/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle "reedes/vim-lexical"

Keybase proof

I hereby claim:

  • I am duckpuppy on github.
  • I am duckpuppy (https://keybase.io/duckpuppy) on keybase.
  • I have a public key ASBWZ1s_XQ-rISH8YZc4nmqOpvmpwED-VbXW23kUS6JFHgo

To claim this, I am signing this object:

@duckpuppy
duckpuppy / gist:05d4185357835cea88b46674aa423957
Created June 15, 2017 18:59
Terraform DEBUG output for backend migration issue
2017/06/15 14:59:01 [INFO] Terraform version: 0.9.8
2017/06/15 14:59:01 [INFO] Go runtime version: go1.8.3
2017/06/15 14:59:01 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.9.8/bin/terraform", "init"}
2017/06/15 14:59:01 [DEBUG] Detected home directory from env var: /Users/patrickaikens
2017/06/15 14:59:01 [DEBUG] Detected home directory from env var: /Users/patrickaikens
2017/06/15 14:59:01 [DEBUG] Attempting to open CLI config file: /Users/patrickaikens/.terraformrc
2017/06/15 14:59:01 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/06/15 14:59:01 [INFO] CLI command args: []string{"init"}
2017/06/15 14:59:01 [DEBUG] Detected home directory from env var: /Users/patrickaikens
Downloading modules (if any)...