Skip to content

Instantly share code, notes, and snippets.

/var/folders/qc/bflqyv394j1c70pj52k53vf40000gp/T/ruby-build.20181107143635.8229 ~
/var/folders/qc/bflqyv394j1c70pj52k53vf40000gp/T/ruby-build.20181107143635.8229/ruby-2.4.2 /var/folders/qc/bflqyv394j1c70pj52k53vf40000gp/T/ruby-build.20181107143635.8229 ~
checking for ruby... /Users/patrickaikens/.rbenv/shims/ruby
config.guess already exists
config.sub already exists
checking build system type... x86_64-apple-darwin18.2.0
checking host system type... x86_64-apple-darwin18.2.0
checking target system type... x86_64-apple-darwin18.2.0
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
@duckpuppy
duckpuppy / sns-to-slack.js
Created August 24, 2018 20:07 — forked from benyanke/sns-to-slack.js
AWS Lambda function for forwarding SNS notifications to Slack
// Added by Ben Yanke
// from https://gist.github.com/benyanke/862e446e5a816551928d8acc2d98b752
console.log('Loading function');
const https = require('https');
const url = require('url');
// SETUP
// urlToUse = in this environment variable, place the name of another environment variable which contains the key.
// This allows easy dev/prod switching.
@duckpuppy
duckpuppy / function.js
Created August 24, 2018 20:05 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
console.log('Loading function');
const https = require('https');
const url = require('url');
// to get the slack hook url, go into slack admin and create a new "Incoming Webhook" integration
const slack_url = 'https://hooks.slack.com/services/...';
const slack_req_opts = url.parse(slack_url);
slack_req_opts.method = 'POST';
slack_req_opts.headers = {'Content-Type': 'application/json'};
@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)...

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:

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"
@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/*',
\ },
\ }
@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
/**
* 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 {
{
"working_dir": "${project_path:${folder}}",
"shell_cmd": "mvn -fae clean install"
}