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 | |
echo "Getting list of Availability Zones" | |
all_regions=$(aws ec2 describe-regions --output text --query 'Regions[*].[RegionName]' | sort) | |
all_az=() | |
while read -r region; do | |
az_per_region=$(aws ec2 describe-availability-zones --region $region --query 'AvailabilityZones[*].[ZoneName]' --output text | sort) | |
while read -r az; do |
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
# module list (generated by listmodules.py) | |
# | |
# timestamp='20160226T200954Z' | |
# sys.version='2.7.10 (default, Dec 8 2015, 18:25:23) \n[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]' | |
# sys.platform='linux2' | |
# platform='Linux-4.1.13-19.31.amzn1.x86_64-x86_64-with-glibc2.2.5' | |
# | |
BaseHTTPServer | |
Bastion | |
CDROM |
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
// | |
// Bot | |
// class for performing various twitter actions | |
// | |
var Twit = require('../lib/twitter'); | |
var Bot = module.exports = function(config) { | |
this.twit = new Twit(config); | |
}; |
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
#First you'll need to Signup for AWS/EC2 and generate a key pair. Google it, there should be plenty of | |
#tutorials. | |
#Next, create an instance using the AWS Management Console and log into it using your key pair. | |
#You can find the AMI's here https://help.ubuntu.com/community/EC2StartersGuide | |
#I picked a 64bit 10.04 LTS AMI in US-East. | |
#Install node's perquisites (or those that aren't the default ubuntu LTS ami): | |
sudo apt-get update | |
sudo apt-get install build-essential libssl-dev |
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 | |
pear upgrade pear | |
## Install Phing ####################################### | |
pear channel-discover pear.phing.info | |
pear install --alldeps phing/phing | |
## Install PHPUnit ##################################### | |
yum install php-xml |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |