Skip to content

Instantly share code, notes, and snippets.

View mikecarroll's full-sized avatar

Michael Carroll mikecarroll

View GitHub Profile
#!/usr/bin/env ruby
##########################################
#
# This script is to help you get around the dreaded 'Resource Has A Dependent Object'
# when deleting something in AWS. It will search a handful of places for that sg ID
# and let you know if it finds anything. Its a pretty quick n dirty script.
#
# If I missed any areas it should search, please let me know or better yet, make a pull request!
#
# You'll need to install the aws-sdk ruby gem: sudo gem install aws-sdk
@mikecarroll
mikecarroll / sitemap_generator.rake
Last active December 25, 2015 14:07 — forked from rorra/sitemap_generator.rb
Some changes made to make this work with the most recent version of sitemap_generator. Also, changed from using an s3.yml file to just using the Heroku S3 config variables directly.
require 'aws'
class Rake::Task
def replace &block
@actions.clear
prerequisites.clear
enhance &block
end
end