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

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
@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
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