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
#!/usr/bin/env ruby | |
require 'aws-sdk' | |
require 'pp' | |
AWS.config(:proxy_uri => ENV['http_proxy']) | |
config_path = File.expand_path(File.dirname(__FILE__)+"/keys.yml") | |
AWS.config(YAML.load(File.read(config_path))) | |
ec2 = AWS::EC2.new |
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
#!/usr/bin/env perl | |
#use strict; | |
use warnings; | |
use Data::Dumper; | |
if (1){ | |
$calar = '外から見えるのよ'; | |
} | |
print $calar; |
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
# Yields once for each key pair in your account. | |
# @return [nil] | |
def each &block | |
response = filtered_request(:describe_key_pairs) | |
response.key_set.each do |kp| | |
yield(KeyPair.new(kp.key_name, | |
:fingerprint => kp.key_fingerprint, | |
:config => config)) | |
end | |
nil |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use JSON::XS; | |
use Data::MessagePack; | |
$| = 1; | |
my $mp = Data::MessagePack->new(); |
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
<match filtered.game_access.**> | |
type rewrite | |
remove_prefix filtered | |
add_prefix rewrited | |
<rule> | |
key path.cor_id | |
pattern ^(\d+)$ | |
append_to_tag true | |
fallback others | |
</rule> |
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
<source> | |
type forward | |
</source> | |
<match service.**> | |
type forest | |
subtype file_alternative | |
remove_prefix service | |
<template> | |
time_slice_format %Y%m%d_%H |
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
'time' => bless( { | |
'local_rd_secs' => 1033, | |
'local_rd_days' => 734695, | |
'rd_nanosecs' => 0, | |
'locale' => bless( { | |
'default_time_format_length' => 'medium', | |
'native_territory' => 'United States', | |
'native_language' => 'English', | |
'native_complete_name' => 'English United States', | |
'en_language' => 'English', |
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
{ | |
"lock_time":0.00019899999999999999, | |
"explain1":{ | |
"key_len":null, | |
"Extra":"Using where; Using join buffer", | |
"ref":null, | |
"table":"b", | |
"rows":"10", | |
"key":null, | |
"select_type":"SIMPLE", |
NewerOlder