.
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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"reflect" | |
) | |
type Something interface{} |
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
#!/bin/sh | |
################################################################## | |
# Copyright 2008 Spike^ekipS <spikeekips@gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# |
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
set grid | |
set title 'TreeGenerator Elapsed Time' | |
set xlabel 'number of added nodes' | |
set ylabel 'elapsed(ms)' | |
plot '/tmp/tg.dat' with points linetype 9 notitle |
for i in seoul tokyo california sydney
do
aws --profile tokennet-public-aws0-$i ec2 import-key-pair --key-name tokennet-public --public-key-material MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyo+KRVKL0e+oA6EcI0bJFETKklKJv/d+c4SHqezQnfjYWjmq9wfJfIhEAl3qPM2eK675YFZ0mxEM8o6wCMv7mSS84tPXHeO3HS1oduc8naE4K3cxbgEFuV5gWan/RBb/kSq0rNzwxTaFD2+Xv8zRHX+GjV7ojmS+15c1FwvptgLe4VGS49JbkVmxJAQm5Vg7Qc5qL/B0qGzzie3bYq1c3CIvo2+ECwEA6cG+y90CZDWOaeZz1TWzXgNtonpG0fIepY5mHFTeeLoEeuRoacz0bU6hHC3rKkeIhn7WKyUHMRDVuxl8lcszh31isR6qj/D6zuD8mBDk4IXEOjYZBEOyuQIDAQAB
aws --profile tokennet-public-aws1-$i ec2 import-key-pair --key-name tokennet-public --public-key-material MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyo+KRVKL0e+oA6EcI0bJFETKklKJv/d+c4SHqezQnfjYWjmq9wfJfIhEAl3qPM2eK675YFZ0mxEM8o6wCMv7mSS84tPXHeO3HS1oduc8naE4K3cxbgEFuV5gWan/RBb/kSq0rNzwxTaFD2+Xv8zRHX+GjV7ojmS+15c1FwvptgLe4VGS49JbkVmxJAQm5Vg7Qc5qL/B0qGzzie3bYq1c3CIvo2+ECwEA6cG+y90CZDWOaeZz1TWzXgNtonpG0fIepY5mHFTeeLoEeuRoa
tokennet-keys 'Test BOS Token Network ; local.test; September 2017'
horizon='http://192.168.99.110:8080'
genesis_seed='SBQKVXRWIN7DM36PKOH73YFS5EC44H3QUPDULXJJZOSXOU7FB4V62IHZ'
common_acocunt='GCPQQIX2LRX2J63C7AHWDXEMNGMZR2UI2PRN5TCSOVMEMF7BAUADMKH5'
#root_account='GAMX6BVPNPWWRGGAUZGT57YG4ZYNI3FO5UHXYSGYBODQVFWIEBWVFDRX'
# this is fake root account
root_account='GC2HXJ25LJLDTEDI7ZXXYWN6KXFLPEPNT67NUQADPU4VYHE7RVBT6MHI'
$ ansible -o -i env/tokennet-test servers -m shell -a 'sudo dmesg | grep xvd | grep -v xvda | grep -v "from /dev/hd" | grep "blkfront:"'
$ for i in seoul1 seoul7 seoul5 seoul4 seoul2 seoul6 seoul0 seoul8 seoul9 seoul3 tokyo1 tokyo4 tokyo2 tokyo5 tokyo7 tokyo8 tokyo3 tokyo6 tokyo0 es-seoul0 tokyo9 es-seoul1 es-seoul2 es-seoul3 sydney4 sydney5 sydney6 sydney3 sydney1 sydney8 sydney0 sydney2 sydney7 sydney9 california0 california1 california6 california5 california2 california4 california3 california7 california9 california8; do ansible -o -l $i -i env/tokennet-test servers -m shell -a 'mount | grep "/dev/xvdb"'; done