Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am kmccanless on github.
* I am kmccanless (https://keybase.io/kmccanless) on keybase.
* I have a public key ASDjWO559ZYXuKythr8Ba1bBsGGxOKVZkucJhcczjolkrAo
To claim this, I am signing this object:
@kmccanless
kmccanless / unused-sg.js
Created March 10, 2014 18:53
Node.js script for listing unused Security Groups from Amazon Web Services. You will need to configure credientials through either config file or env vars.
var AWS = require('aws-sdk'),
_ = require('lodash-node');
//AWS.config.update({region: 'us-east-1'});
var ec2 = new AWS.EC2({region: 'us-east-1'});
var params = {
DryRun: false
};
@kmccanless
kmccanless / gist:9136154
Created February 21, 2014 15:25
JavaScript Skill Assignment Question #1
function init(list) {
var result = [];
for (var i = 0; i < list.length; i++) {
var item = 'item' + list[i];
result.push(function () {
alert(item + '' + list[i])
});
}
return result;
}