AWS SDKを使ったアプリケーションを作る時credentialsの扱いがいつも面倒なので、ベストプラクティス的なものを考えていきたい。
例として、
$ ruby myec2.rb list
| require './rsa_math.rb' | |
| class RSA | |
| class << self | |
| PUBLIC_EXPONENT = 65537 | |
| def gen_key(bits) | |
| e = PUBLIC_EXPONENT | |
| p = RSAMath.gen_prime(bits/2) |
[1] pry(main)> Time.at(1424770450)
=> 2015-02-24 18:34:10 +0900
% cat hoge_01.csv
192.168.10.143,192.168.10.53,1424770450
| <?xml version='1.0' encoding='utf-8' ?> | |
| <connection-customization class='postgres' enabled='true' version='7.7'> | |
| <vendor name='postgres' /> | |
| <driver name='postgres' /> | |
| <customizations> | |
| <!-- Keep using the PostgreSQL driver for the Tableau PostgreSQL connection, but override settings that the remote Presto server does not support. --> | |
| <customization name='odbc-connect-string-extras' value='UseDeclareFetch=0;UseServerSidePrepare=0' /> | |
| <customization name='CAP_CREATE_TEMP_TABLES' value='No' /> | |
| <customization name='CAP_SELECT_INTO' value='No' /> | |
| </customizations> |
Why Uber Engineering Switched from Postgres to MySQL - Uber Engineering Blog のまとめ
Posgresqlだと