Skip to content

Instantly share code, notes, and snippets.

View nhajratw's full-sized avatar

Nayan Hajratwala nhajratw

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nhajratw on github.
  • I am nhajratw (https://keybase.io/nhajratw) on keybase.
  • I have a public key whose fingerprint is E853 899F 97FE 6231 D159 F204 41D6 BB63 207A C94C

To claim this, I am signing this object:

#!/usr/bin/env ruby
#
#
require 'net/http'
my_ip = Net::HTTP.get(URI('http://icanhazip.com'))
system "aws ec2 authorize-security-group-ingress --group-id sg-2f666d4d --protocol all --cidr #{my_ip}/32"