This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rubygems" | |
require "sinatra/base" | |
require 'pony' | |
require 'yaml' | |
require 'json' | |
class Contact < Sinatra::Base | |
before do | |
p"START LOGGING" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› aws ec2 describe-addresses --profile id-mob-staging | |
------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| DescribeAddresses | | |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
|| Addresses || | |
|+-------------------+--------------------+---------+-------------+---------------------+--------------------------+--------------------+------------------+| | |
|| AllocationId | AssociationId | Domain | InstanceId | NetworkInterfaceId | NetworkInterfaceOwnerId | PrivateIpAddress | PublicIp || | |
|+-------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› aws ec2 describe- | |
describe-account-attributes describe-import-image-tasks describe-placement-groups describe-spot-datafeed-subscription describe-vpc-attribute | |
describe-addresses describe-import-snapshot-tasks describe-prefix-lists describe-spot-fleet-instances describe-vpc-classic-link | |
describe-availability-zones describe-instance-attribute describe-regions describe-spot-fleet-request-history describe-vpc-endpoint-services | |
describe-bundle-tasks describe-instance-status describe-reserved-instances describe-spot-fleet-requests describe-vpc-endpoints | |
describe-classic-link-instances describe-instances describe-reserved-instances-listings describe-spot-instance-requests describe-vpc-peering-connections | |
describe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
aws_access_key_id = XXX | |
aws_secret_access_key=XXX | |
[id-mob-staging] | |
aws_access_key_id = XXX | |
aws_secret_access_key = XXX | |
[id-mob-prod] | |
aws_access_key_id = XXX | |
aws_secret_access_key = XXX | |
[bs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] | |
region = eu-west-1 | |
[profile id-mob-staging] | |
output = table | |
region = eu-west-1 | |
[profile id-mob-prod] | |
output = table | |
region = eu-west-1 | |
[profile bs] | |
output = json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› aws ec2 describe-instances | |
{ | |
"Reservations": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› aws ec2 describe-instances --filter Name=tag:class,Values=web Name=tag:Env,Values=staging --profile bs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
› aws ec2 describe-instances --filter Name=tag:class,Values=web Name=tag:Env,Values=staging --profile bs | jq '.Reservations[].Instances[].PublicDnsName' | |
"ec2-52-52-52-52.eu-west-1.compute.amazonaws.com" | |
"ec2-52-52-52-53.eu-west-1.compute.amazonaws.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +geerttheys is my blockchain ID. https://onename.com/geerttheys |
OlderNewer