http://man7.org/linux/man-pages/man1/time.1.html
http://linuxjm.sourceforge.jp/html/LDP_man-pages/man1/time.1.html
curl -L -O http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz | |
tar zxf autoconf-2.69.tar.gz | |
cd autoconf-2.69 | |
yum install -y openssl-devel | |
./configure | |
make && make install |
##### setup start | |
BATS_TEST_NAME: test_example_status_and_output-2c_lines | |
BATS_TEST_FILENAME: /home/bats/test.bats | |
BATS_TEST_DIRNAME: /home/bats | |
BATS_TEST_NAMES: test_example_status_and_output-2c_lines | |
BATS_TEST_DESCRIPTION: example status and output, lines | |
BATS_TEST_NUMBER: 1 | |
BATS_TMPDIR: /tmp | |
##### setup end | |
example 1 |
# LUAJIT のディレクトリは適宜変更 | |
LUAJIT_LIB=/usr/local/lib | |
NGX_VERSION=1.4.3 | |
wget "http://nginx.org/download/nginx-$NGX_VERSION.tar.gz" | |
tar zxvf nginx-$NGX_VERSION.tar.gz | |
# ./configure: error: the HTTP rewrite module requires the PCRE library. | |
yum install pcre pcre-devel | |
yum install openssl openssl-devel zlib zlib-devel readline readline-devel libxml2 libxml2-devel libxslt-devel |
# http://stackoverflow.com/questions/9676113/lua-os-execute-return-value | |
local handle = io.popen("ls") | |
local result = handle:read("*a") | |
handle:close() | |
print(result) |
$ bash drop-spanner-tables.sh <your project> <your spanner instance> <your spanner database>
#!/bin/bash | |
project="${1}" | |
instance="${2}" | |
billing_project="${3}" | |
_gcloud() { | |
if [ "${billing_project}" != "" ]; then | |
gcloud --project ${project} --billing-project ${billing_project} "${@}" | |
fi |
$ autossh -M 33333 -N -f -L 13260:10.150.1.26:3260 sg | |
$ yum install -y iscsi-initiator-utils | |
$ iscsiadm -m discovery -t sendtargets -p 127.0.0.1:13260 | |
$ vim /var/lib/iscsi/send_targets/127.0.0.1\,13260/iqn.1997-05.com.amazon\:myvolume\,10.150.1.26\,3260\,1\,default/default | |
#node.conn[0].address = 10.150.1.26 | |
#node.conn[0].port = 3260 | |
node.conn[0].address = 127.0.0.1 |