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 ec2 describe-spot-price-history --instance-types $(aws ec2 describe-spot-price-history help | sed -En '/Where valid values are:/,/^$/s/^ +([^.]+[.])/\1/p') --start-time=$(echo "$(date +%s) - (4 * 7 * 24 * 60 * 60)" | bc) --product-descriptions="Linux/UNIX (Amazon VPC)" --query 'SpotPriceHistory[*].{ts:Timestamp, az:AvailabilityZone, price:SpotPrice, it:InstanceType}' --filters Name=spot-price,Values="0.0*" > /tmp/ec2-spot-prices.txt |
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
| package a | |
| import "fmt" | |
| type Sayer interface { | |
| Say() string | |
| } | |
| type Formal struct{} |
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
| import java.nio.ByteBuffer; | |
| import java.nio.ByteOrder; | |
| public class VerticaBinaryFormatBitSet { | |
| private static final byte ZERO = (byte)0; | |
| private byte[] bytes; | |
| private boolean dirty = false; | |
| private int numBits; | |
| private int numBytes; |
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
| { | |
| "query" : { | |
| "filtered" : { | |
| "query" : { "match_all" : {} }, | |
| "filter" : { | |
| "and" : [ | |
| { "or" : [ | |
| { "prefix" : { "name" : "hugo" } }, | |
| { "prefix" : { "contact" : "hugo" } } | |
| ]}, |