Locked out from your AWS EC2 or RDS or whatever else? Have a batch script on hand with your security groups ready to run on Windows. Just edit the security group IDs and save it as a .bat file
@Echo off for /f "tokens=2 delims=: " %%A in ( 'nslookup myip.opendns.com. resolver1.opendns.com 2^>NUL^|find "Address:"' ) Do set ExtIP=%%A echo Going to unlock your IPv4 IP: %ExtIP%/32 echo NB. REPLACE YOUR SECURITY GROUPS IN THE FILE BELOW: echo IF THIS DOES NOT WORK, HAVE YOU RAN AWS CONFIGURE? aws ec2 authorize-security-group-ingress --group-id sg-fd873595 --protocol tcp --port 0-65535 --cidr %ExtIP%/32 aws ec2 authorize-security-group-ingress --group-id sg-afa623c7 --protocol tcp --port 0-65535 --cidr %ExtIP%/32 aws ec2 authorize-security-group-ingress --group-id sg-a9a025c1 --protocol tcp --port 0-65535 --cidr %ExtIP%/32
My personal list of links which I keep here publicly incase they help someone else one day.
Snippets of PHP code I have gathered over the years. I keep them here for my own repository but also to share with others. I always link back when I remember the source.
This site was originally intended as a test bed for code. It now includes my blog about business and powerlifting, as well as games for Spanish language learning