db.r6g.large | db.r5.large | |
---|---|---|
暗号化なし / mixed | ||
暗号化 / mixed | ||
暗号化なし / key | ![](https://docs.google.com/spreadsheets/d/e/2PACX-1vTZXUQ9RSdLyeRYTS3wGPeB |
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/lib/ruby/gems/1.8/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract_mysql_adapter.rb.orig 2013-10-31 07:37:55.704402703 +0000 | |
+++ /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.15/lib/active_record/connection_adapters/abstract_mysql_adapter.rb.reconnect 2013-10-31 09:18:52.061099228 +0000 | |
@@ -239,11 +239,16 @@ | |
# Executes the SQL statement in the context of this connection. | |
def execute(sql, name = nil) | |
+ begin | |
if name == :skip_logging | |
@connection.query(sql) | |
else |
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 'base64' | |
AWS.config(region: 'us-east-1') | |
client = AWS.kinesis.client | |
STREAM_NAME = 'hello' | |
SHARD_ID = 'shardId-000000000000' | |
# shard_idの取得 |
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
<Response><Say language="ja-jp" voice="woman">私こっくりさん。今あなたの後ろにいるよ。</Say></Respon |
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
140122 0:21:53 7 Connect mha@yog on | |
7 Query set autocommit=1 | |
7 Query SELECT CONNECTION_ID() AS Value | |
8 Connect mha@yog on | |
8 Query set autocommit=1 | |
8 Query SELECT CONNECTION_ID() AS Value | |
8 Query SET wait_timeout=86400 | |
8 Query SELECT @@global.server_id As Value | |
8 Query SELECT VERSION() AS Value | |
8 Query SHOW GLOBAL VARIABLES LIKE 'log_bin' |
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 | |
trap('PIPE', 'EXIT') | |
filnum = ARGV[0] | |
col = Integer(ARGV[1]) | |
File.read(filnum).lines.each do |line| | |
state = 0 | |
print line.split(//).slice_before {|ch| |
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
CREATE TABLE games ( | |
author STRING HASH, | |
game_id NUMBER RANGE, | |
INDEX game-type-id-index (game_type_id NUMBER) ALL, | |
GLOBAL INDEX game-title-index (title STRING, version NUMBER) ALL | |
) read=4 write=4 |
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
require 'open3' | |
class TinyMysql | |
attr_reader :mysql_command | |
attr_reader :defaults_extra_file | |
attr_reader :host | |
attr_reader :port | |
attr_reader :username | |
attr_reader :database |
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
Parameters do | |
ImageId do | |
Type "String" | |
# http://cloud-images.ubuntu.com/precise/current/ | |
# ap-northeast-1; 64-bit; ebs | |
Default "ami-1f334f1e" | |
end | |
InstanceType do | |
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
select | |
pg_user.usename, | |
t1.nspname, | |
t1.relname, | |
relacl.privilege_type, | |
relacl.is_grantable | |
from ( | |
select | |
pg_namespace.nspname, | |
pg_class.relname, |