I hereby claim:
- I am gklopper on github.
- I am grantk (https://keybase.io/grantk) on keybase.
- I have a public key whose fingerprint is EA21 FA51 57A9 E67C 579A A979 EB5A 0218 BC5A 3F89
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Safari HTTP Pipelining bug. | |
| if( | |
| req.http.user-agent ~ ".*Version/.*Safari/.*" && | |
| req.http.user-agent !~ ".*Chrome.*" | |
| && req.http.user-agent !~ ".*BB.*" | |
| ) { | |
| set resp.http.Connection = "close"; | |
| } |
| // charges are only available from the 'default' region | |
| private lazy val defaultCloudClient = new AmazonCloudWatchAsyncClient(Configuration.aws.credentials) | |
| def cost = new CostMetric(defaultCloudClient.getMetricStatisticsAsync(new GetMetricStatisticsRequest() | |
| .withNamespace("AWS/Billing") | |
| .withMetricName("EstimatedCharges") | |
| .withStartTime(new DateTime().toLocalDate.toDate) | |
| .withEndTime(new DateTime().toDate) | |
| .withStatistics("Maximum") | |
| .withPeriod(60 * 60 * 24) | |
| .withDimensions(new Dimension().withName("Currency").withValue("USD")), asyncHandler)) |
| val cloudClient = new AmazonCloudWatchClient(credentials) | |
| cloudClient.setEndpoint("monitoring.eu-west-1.amazonaws.com") | |
| cloudClient.getMetricStatistics( | |
| new GetMetricStatisticsRequest() | |
| .withStartTime(new DateTime().minusHours(3).toDate) | |
| .withEndTime(new DateTime().toDate) | |
| .withPeriod(60) | |
| .withUnit(StandardUnit.Seconds) |
| import com.amazonaws.auth.BasicAWSCredentials | |
| import com.amazonaws.services.dynamodb.AmazonDynamoDBClient | |
| import collection.JavaConversions._ | |
| import com.amazonaws.services.dynamodb.model.{AttributeValue, PutItemRequest} | |
| object Value { | |
| def apply(s: String) = new AttributeValue(s) | |
| def apply(l: Long) = new AttributeValue().withN(l.toString) | |
| } |
| sudo gnome-desktop-item-edit /usr/share/applications/ --create-new |
| gnome-desktop-item-edit ~/tools/idea-IU-111.69/bin/ --create-new |
| Reply from 209.85.229.99: bytes=32 time=29ms TTL=52 | |
| Reply from 209.85.229.99: bytes=32 time=31ms TTL=52 | |
| Reply from 209.85.229.99: bytes=32 time=34ms TTL=52 | |
| Request timed out. | |
| Request timed out. | |
| Request timed out. | |
| Reply from 209.85.229.99: bytes=32 time=33ms TTL=52 | |
| Reply from 209.85.229.99: bytes=32 time=41ms TTL=52 | |
| Reply from 209.85.229.99: bytes=32 time=65ms TTL=52 |
| document.write (');\n'); | |
| document.write ('</script><noscript><a href="http://oas.guardian.co.uk/5c/www.guardian.co.uk/commentisfree/2011/jun/08/us-withdraw-talk-iraq-afghanistan/oas.html/L32/895912589/Right1/Guardian/DirectLineHomeInsurance_Right_010611/DirLine_Right_010611.html/545765594e6b794d6461674142366755?http://clk.atdmt.com/DIR/go/330467665/direct/01/895912589" target="_blank"><img border="0" src="http://view.atdmt.com/DIR/view/330467665/direct/01/895912589" /></a></noscript></iframe>\n'); | |
| document.write ('<IMG SRC="http://oas.guardian.co.uk/5/www.guardian.co.uk/commentisfree/2011/jun/08/us-withdraw-talk-iraq-afghanistan/oas.html/L32/895912589/Right1/Guardian/DirectLineHomeInsurance_Right_010611/DirLine_Right_010611.html/545765594e6b794d6461674142366755?_RM_EMPTY_&k=usa&k=us-politics&k=usforeignpolicy&k=afghanistan&k=world&k=us-military&cf=us+elections&pid=&ct=article&pt=article&pt=blog&" WIDTH=1 HEIGHT=1>\n'); |
| val result = cache.get("missing-key") orElse { | |
| cache.put("missing-key", "dog") | |
| Some("dog") | |
| } |