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
seespot -health-port=8686 -health-path=/health -app-health=”https://localhost:8080/health" -cleanup-task=/path/to/cleanup.sh |
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
PARKINGSPOT_API_KEY=yourapikey | |
$(parkingspot -memory 2000 -cpu 6 -max-bid 0.50) docker-machine create --driver amazonec2 \ | |
--amazonec2-request-spot-instance \ | |
--amazonec2-region "${PARKINGSPOT_REGION}" \ | |
--amazonec2-spot-price "${PARKINGSPOT_BID}" \ | |
--amazonec2-instance-type "${PARKINGSPOT_INSTANCE_TYPE}" \ | |
parkingspot-worker | |
# If you want to use Docker Compose |
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
variable "spot_price" { | |
type = "string" | |
} | |
variable "instance_type" { | |
type = "string" | |
} | |
variable "region" { | |
type = "string" |
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
curl -i \ | |
-H "Content-Type: application/json" | |
-H 'X-PARKINGSPOT-API-KEY: yourkey' \ | |
-X POST | |
-d '{"MaxBid": 0.25, "Region": "us-west-2"}' | |
https://api.parkingspot.bid/v1/spot/me | |
# You can also just use our CLI tool: | |
# https://github.com/acksin/parkingspot |
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
$(parkingspot -max-bid 0.25 -region us-west-2) packer parkingspot-packer.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
{ | |
"builders": [ | |
{ | |
"type": "amazon-ebs", | |
"region": "{{env `PARKINGSPOT_REGION }}", | |
"source_ami": "ami-fa82739a", // Have to do some logic to make sure that the AMI is correct. Also pass the -region flag to limit machines to a certain region. | |
"spot_price": "{{env `PARKINGSPOT_BID`}}", | |
"instance_type": "{{env `PARKINGSPOT_INSTANCE_TYPE`}}", | |
"vpc_id": "vpc-79f9021d", | |
"ssh_username": "ubuntu", |
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
# ` is an interesting key for a prefix | |
set-option -g prefix ` | |
# set-option -g prefix C-a | |
set -sg escape-time 0 | |
#unbind-key C-b | |
bind-key C-a last-window | |
bind-key ` last-window | |
bind-key a send-prefix |
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 experiments = { | |
"YvvWWQlbSLSUqKvi6YD": [ | |
function() {}, | |
function() { | |
$("#support-nav").html("Support"); | |
} | |
], | |
"CeK01Si7S_m_c7iYjyu9Nw": [ | |
function() {}, | |
function() { |
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
{ | |
"AZ": "us-west-2b", | |
"RecommendedBid": "0.023492497666109377", | |
"Mean": "0.02", | |
"Median": "0.02", | |
"StdDev": "0.0034924976661093749", | |
"SavingsPercent": "82.33646792021851", | |
"OnDemandPrice": "0.133", | |
"DataSet": "647" |
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
{ | |
"Services": { | |
"landing_page.emails": { | |
"AWS": { | |
"AccessKey": "AWS-Access-Key", | |
"SecretKey": "AWS-Secret-Key", | |
"Region": "us-west-2" | |
}, | |
"FunctionName": "arn:aws:lambda:us-west-2:1234:function:landing_page_emails-dev" | |
} |