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
$ for i in 1st 2nd 3rd; do echo "### $i ###"; siege -c 16 -t 1m -b -q http://dagon/employee_count; echo '---'; sleep 3; done | |
### 1st ### | |
Lifting the server siege... done. | |
Transactions: 5436 hits | |
Availability: 100.00 % | |
Elapsed time: 59.02 secs | |
Data transferred: 0.08 MB | |
Response time: 0.17 secs |
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
$ for i in 1st 2nd 3rd; do echo "### $i ###"; siege -c 16 -t 1m -b -q http://dagon/employee_count; echo '---'; sleep 3; done | |
### 1st ### | |
Lifting the server siege... done. | |
Transactions: 5451 hits | |
Availability: 100.00 % | |
Elapsed time: 59.31 secs | |
Data transferred: 0.08 MB | |
Response time: 0.17 secs |
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
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 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
<Response><Say language="ja-jp" voice="woman">私こっくりさん。今あなたの後ろにいるよ。</Say></Respon |
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
#!/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 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
require 'json' | |
require 'openssl' | |
require 'net/http' | |
require 'net/https' | |
require 'time' | |
require 'stringio' | |
require 'zlib' | |
module Kinesis | |
class Client |
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
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 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
--- /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 |
NewerOlder