| Title | Description
$ aws --region=ap-northeast-2 ec2 describe-spot-price-history --instance-types c4.large --start-time=$(date +%s) --product-descriptions="Linux/UNIX" --query 'SpotPriceHistory[*].{az:AvailabilityZone, price:SpotPrice}'
[
{
"price": "0.024900",
"az": "ap-northeast-2a"
},
{
#Using LetsEncrypt SSL certificates on AWS
This is a document for managing the LetsEncrypt certificates on AWS for Cloudfront and Opsworks.
##Setup
The following are instructions for using LetsEncrypt under Mac OS. It is for a single token for a single server.
It is an active project, so make sure you do a pull every so often.
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 five = require( 'johnny-five' ), | |
board, | |
narf = require( 'narf' ); | |
board = new five.Board(); | |
/* | |
Executes a command and fires event when done that | |
will return the command output | |
*/ |
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
#!/bin/bash | |
# | |
# Prints out how many seconds ago this EC2 instance was started | |
# | |
# It uses Last-Modified header returned by EC2 metadata web service, which as far | |
# as I know is not documented, and hence I assume there is no guarantee | |
# that Last-Modified will be always set correctly. | |
# | |
# Use at your own risk. | |
# |