This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS CF Template to create VPC, Subnet, Security Group, Route Table and Internet Gateway", | |
"Parameters":{ | |
"AvailabilityZone": { | |
"Description": "select the Availability Zone for your Deployment", | |
"Type": "AWS::EC2::AvailabilityZone::Name" | |
} | |
}, | |
"Mappings": { |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "AWS Cloud Formation template to launch an EC2 Instance and | |
a LoadBalancer", | |
"Parameters": { | |
"AvailabilityZone": { | |
"Description": "select the Availability Zone to launch the Instance", | |
"Type": "AWS::EC2::AvailabilityZone::Name" | |
}, | |
"EC2InstanceType": { |
This file contains hidden or 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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "A simple description of what this template does", | |
"Parameters": { | |
//variables that can be passed to the template during deployment. | |
}, | |
"Mappings": { | |
//keys which match to a corresponding set of named values | |
} |
This file contains hidden or 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::ProductIdentifier::ResourceType | |
//----------------------------------------------// | |
{ | |
"Resources" : { | |
"HelloBucket" : { | |
"Type" : "AWS::S3::Bucket" | |
} | |
} | |
} |
This file contains hidden or 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
#!/bin/bash | |
yum install perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https -y | |
curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O | |
unzip CloudWatchMonitoringScripts-1.2.1.zip | |
rm CloudWatchMonitoringScripts-1.2.1.zip |
This file contains hidden or 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
<powershell> | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco install python -y | |
(new-object net.webclient).DownloadFile('https://s3.amazonaws.com/aws-cli/AWSCLI64.msi','c:\AWSCLI64.msi') | |
msiexec.exe /i 'C:\AWSCLI64.msi' /qn | |
</powershell> |
This file contains hidden or 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
#!/bin/bash | |
yum install httpd -y | |
/sbin/chkconfig --levels 235 httpd on | |
service httpd start | |
instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
region=$(curl http://169.254.169.254/latest/dynamic/instance-identity/document | grep region | awk -F\" '{print $4}') | |
echo "<h1>$instanceId</h1>" > /var/www/html/index.html | |
aws ec2 create-tags --resources "$instanceId" --tags Key=Name,Value="PROD-$instanceId" --region "$region" |
This file contains hidden or 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
What is a “component”? | |
When would you use a component over a directive? | |
What is component architecture? | |
What is the difference between a stateful and stateless component? | |
What are lifecycle hooks and why are they important? | |
When would you consider one-way dataflow over two-way? | |
Why is isolate scope an important concept? | |
How would you describe “MVC/MVVM”? | |
What is the difference between MVC/MVVM and component architecture? | |
What types of bindings can a component receive? |
This file contains hidden or 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
function bind(fn,obj){ | |
rerurn function(){ | |
return fn.call(obj) | |
} | |
} | |
function foo(){ | |
console.log(this.bar); | |
} |