Skip to content

Instantly share code, notes, and snippets.

View gist:aec6e9ca64ef1594c3e43b37531b806a
/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 Aug 24, 2018 — forked from benyanke/sns-to-slack.js
AWS Lambda function for forwarding SNS notifications to Slack
View sns-to-slack.js
// 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 Aug 24, 2018 — forked from vgeshel/function.js
AWS Lambda function for forwarding SNS notifications to Slack
View function.js
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 Jun 15, 2017
Terraform DEBUG output for backend migration issue
View gist:05d4185357835cea88b46674aa423957
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)...
View keybase.md

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:

View minimal_lexical_vimrc
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 Jul 10, 2015
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.
View groovyindent-neobundle.vim
NeoBundle 'vim-scripts/groovyindent', {
\ 'build' : {
\ 'unix' : 'dos2unix indent/*',
\ },
\ }
@duckpuppy
duckpuppy / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View GroovyCLI.groovy
/**
* 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 {
View maven.sublime-build
{
"working_dir": "${project_path:${folder}}",
"shell_cmd": "mvn -fae clean install"
}
You can’t perform that action at this time.