Skip to content

Instantly share code, notes, and snippets.

View stopinator.rb
def ec2
Fog::Compute.new(:provider => 'AWS',
:aws_secret_access_key => ENV['EC2_SECRET_KEY'],
:aws_access_key_id => ENV['EC2_ACCESS_KEY'])
end
def tenured? (instance)
instance.created_at && (instance.created_at < Chronic.parse('50 minutes ago'))
end
@bhouse
bhouse / gist:5249306
Created Mar 26, 2013
datadog berks upload
View gist:5249306
➜ datadog berks -v
Berkshelf (1.3.1)
Author:: Jamie Winsor (<reset@riotgames.com>)
Author:: Josiah Kiehl (<jkiehl@riotgames.com>)
Author:: Michael Ivey (<michael.ivey@riotgames.com>)
Author:: Justin Campbell (<justin.campbell@riotgames.com>)
Copyright 2012 Riot Games
View gist:4662299
➜ ~ git clone git://github.com/blueboxgroup/razor-vagrant-lab.git 2357
Cloning into 'razor-vagrant-lab'...
remote: Counting objects: 257, done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 257 (delta 137), reused 231 (delta 111)
Receiving objects: 100% (257/257), 36.79 KiB, done.
Resolving deltas: 100% (137/137), done.
➜ ~ cd razor-vagrant-lab 2359
direnv: loading ~/razor-vagrant-lab/.envrc
➜ razor-vagrant-lab git:(master) VBoxManage dhcpserver remove --netname vboxnet0 2360