Skip to content

Instantly share code, notes, and snippets.

View sdadh01's full-sized avatar

Andrew Hollingsworth sdadh01

View GitHub Profile
@sdadh01
sdadh01 / function.js
Created January 27, 2017 16:20 — 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'};
Verifying that +adh is my blockchain ID. https://onename.com/adh
@sdadh01
sdadh01 / gist:33543b6ccf24ed848669
Created July 15, 2014 17:34
chef windows_batch NoMethodErrror
chef version: 11.12.8-2 on windows
-----------------------------------
I get a NoMethodError saying windows_batch does not exist even though "depends 'windows'" is in my metadata.rb (see below). Only using windows_batch because the windows_zipfile came up with the same error. Weirdly windows_package works fine.
chef-client output
------------------
PS C:\Users\Administrator> chef-client