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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "this is my sample template.", | |
"Resources" : { | |
"SampleSG" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"DeletionPolicy" : "Delete", | |
"Properties" : { | |
"GroupDescription" : "this is a sample.", | |
"SecurityGroupIngress" : [ |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "$description", | |
"Resources" : { | |
"$security_group.name" : { | |
"Type" : "AWS::EC2::SecurityGroup", | |
"DeletionPolicy" : "Delete", | |
"Properties" : { | |
"GroupDescription" : "$security_group.description", | |
"SecurityGroupIngress" : [ |
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
files: | |
"/home/ec2-user/install-oracle-jdk.sh": | |
mode: "000755" | |
owner: ec2-user | |
group: ec2-user | |
content: | | |
#!/usr/bin/env bash | |
wget -O jdk-7u25-linux-x64.rpm --no-cookies --no-check-certificate --header 'Cookie:gpw_e24=http://www.oracle.com; oraclelicense=accept-securebackup-cookie' 'http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm' | |
rpm -Uvh /home/ec2-user/jdk-7u25-linux-x64.rpm | |
alternatives --install /usr/bin/java java /usr/java/default/bin/java 3 |
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
packages: | |
yum: | |
newrelic-sysmond: [] | |
rpm: | |
newrelic: http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm | |
commands: | |
configure_new_relic: | |
command: nrsysmond-config --set license_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
start_new_relic: | |
command: /etc/init.d/newrelic-sysmond start |
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
var config = require('../config.json'); | |
var AWS = require('aws-sdk'); | |
AWS.config.loadFromPath('config.json'); | |
var simpledb = new AWS.SimpleDB(); | |
var delete_item = function (name, data) { | |
var params = { | |
DomainName: config.domainName, | |
Items: [ | |
{ |
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
packages: | |
yum: | |
gcc-c++: [] | |
make: [] | |
sources: | |
/home/ec2-user: http://download.redis.io/releases/redis-2.8.4.tar.gz | |
commands: | |
redis_build: | |
command: make | |
cwd: /home/ec2-user/redis-2.8.4 |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
background: blue; | |
background: linear-gradient(1deg, aqua, blue); | |
min-height:100%; | |
} | |
#text { | |
color: red; |