embulk-plugin-input-roo-excelはExcelのデータを読み込むためのInputプラグインです。このプラグインでは、Excelファイルを読込みするためにrubyのライブラリrooを使用しています。
このドキュメントはEmbulkで、Rubyのライブラリを使うためにはどのようにしたら良いかをメモしたものです。
このドキュメントは一部不完全なところがあります。(まだ手順が確立できておらず試行錯誤中です。)
| git clone https://github.com/muga/embulk-output-elasticsearch.git | |
| cd embulk-output-elasticsearch/ | |
| ./gradlew gem | |
| embulk gem install -l pkg/embulk-output-elasticsearch-0.1.8.gem |
| #!/usr/bin/env ruby | |
| # | |
| # License: CC0 | |
| # | |
| gravity = 3 | |
| require 'timeout' | |
| include Math | |
| $stdout.sync = 1 |
| #!/usr/bin/env ruby | |
| # License: CC0 | |
| include Math | |
| STDOUT.sync = 1 | |
| case `env LC_ALL=C stty -a` | |
| when / (\d+) rows; (\d+) columns/ | |
| rows = $1.to_i |
embulk-plugin-input-roo-excelはExcelのデータを読み込むためのInputプラグインです。このプラグインでは、Excelファイルを読込みするためにrubyのライブラリrooを使用しています。
このドキュメントはEmbulkで、Rubyのライブラリを使うためにはどのようにしたら良いかをメモしたものです。
このドキュメントは一部不完全なところがあります。(まだ手順が確立できておらず試行錯誤中です。)
| setsync 1 | |
| timeout = 0 | |
| ; getspecialfolder save_dir "MyDocuments" | |
| getspecialfolder save_dir "Desktop" | |
| ; save_dir = "C:\My Documents" | |
| ; save_dir = "" | |
| do | |
| recvln |
1秒単位とかで、定期的にSQLを実行したいときのやり方。
#!/bin/sh
cd `dirname $0`
LOCKFILE=.lock_sesw_`date "+%m%d%H%M%S"`
rm -f .lock_sesw_*
touch $LOCKFILEOracle Linux 6.5 + oracle-rdbms-server-12cR1-preinstallのRPMが入ったDocker Imageを作成する手順。CentOSイメージをConvertする手順となっている。
完成品は以下にある。(Dockerfile)
https://github.com/yasushiyy/vagrant-docker-oracle12c/blob/master/Dockerfile
| bind g command -c buffilt | |
| bind -c buffilt \\ eval writebuf screen 'stuff "scrbuf.sh rmwrap-emacs&&exit^M"' | |
| bind -c buffilt > eval writebuf screen 'stuff "scrbuf.sh rmwrap-vim&&exit^M"' | |
| bind -c buffilt + eval writebuf screen 'stuff "scrbuf.sh rmwrap-mutt&&exit^M"' | |
| bind -c buffilt ^E eval writebuf screen 'stuff "scrbuf.sh rmwrap-width&&exit^M"' | |
| bind -c buffilt $ eval writebuf screen 'stuff "scrbuf.sh picklastarg&&exit^M"' | |
| bind -c buffilt ' ' eval writebuf screen 'stuff "scrbuf.sh join-with-blank&&exit^M"' | |
| bind -c buffilt e eval writebuf screen 'stuff "scrbuf.sh edit&&exit^M"' | |
| bind -c buffilt g eval writebuf screen 'stuff "scrbuf.sh grep2l&&exit^M"' | |
| bind -c buffilt h eval writebuf screen 'stuff "scrbuf.sh rmhtmltag&&exit^M"' |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2014 Hayaki Saito <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |