I hereby claim:
- I am SaschaMoellering on github.
- I am sascha242 (https://keybase.io/sascha242) on keybase.
- I have a public key whose fingerprint is EE98 297B D830 D3E1 8A24 C839 2FDA B9BF 82A2 33F7
To claim this, I am signing this object:
#!/bin/bash -ex | |
yum -y update | |
yum install docker -y | |
service docker start | |
docker run autoscaling/ingestion-service |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:InvokeFunction" | |
], | |
"Resource": [ | |
"*" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1431942256000", | |
"Effect": "Allow", | |
"Action": [ | |
"elasticache:*" | |
], | |
"Resource": [ |
I hereby claim:
To claim this, I am signing this object:
➜ vertx git:(master) kitchen version | |
/Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb:22:in `<class:Date>': uninitialized constant SafeYAML::Parse::Date::DateTime (NameError) | |
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb:3:in `<class:Parse>' | |
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb:2:in `<module:SafeYAML>' | |
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb:1:in `<top (required)>' | |
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require' | |
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:69:in `require' | |
from /Library/Ruby/Gems/2.0.0/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb:14:in `<top (required)>' | |
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:121:in `require' | |
from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:121:in `require' |
def create_redis_cluster(region, infrastructure_name, security_groups, subnet_ids, availability_zones, | |
cache_node_type): | |
cluster_name = "{0}-cache-cluster".format(infrastructure_name) | |
replication_group = "{0}-rg".format(infrastructure_name) | |
cluster_subnet = "{0}-cluster-subnet".format(infrastructure_name) | |
print "Creating Redis cluster {0} using security groups {1} and subnet {2} in AZs {3} with cache node type {4}"\ | |
.format(cluster_name, security_groups, subnet_ids, availability_zones, cache_node_type) |
package com.zanox.kinesis.dynamo; | |
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient; | |
import com.amazonaws.services.dynamodbv2.datamodeling.*; | |
/** | |
* Created by sascha.moellering on 17/10/2014. |
IT'S SHOWTIME | |
HEY CHRISTMAS TREE bottles | |
YOU SET US UP 99 | |
HEY CHRISTMAS TREE loop | |
YOU SET US UP @NO PROBLEMO | |
HEY CHRISTMAS TREE result | |
YOU SET US UP @I LIED |
require 'net/http' | |
uri = URI.parse('http://169.254.169.254/latest/meta-data/instance-id') | |
begin | |
Net::HTTP.start(uri.host, uri.port) do |http| | |
request = Net::HTTP::Get.new uri.request_uri | |
http.open_timeout = 5 | |
respone = http.request request | |
end |
0 require 'net/http'¬ | |
1 ·¬ | |
2 uri = URI.parse('http://169.254.169.254/latest/meta-data/instance-id')¬ | |
3 ·¬ | |
4 begin¬ | |
5 Net::HTTP.start(uri.host, uri.port) do |http|¬ | |
6 request = Net::HTTP::Get.new uri.request_uri¬ | |
7 http.open_timeout = 5¬ | |
8 respone = http.request request·¬ | |
9 end¬ |