見積り依頼
python で presto
PyHiveを使う。
使うのも簡単ですね。
from pyhive import presto cursor = presto.connect('localhost').cursor() cursor.execute('SELECT * FROM my_awesome_data LIMIT 10') print cursor.fetchone() print cursor.fetchall()
aws cloudformation
あとで読むこと。
split
cheatコマンドから。なお、まえも説明したとおり-dはGNU版限定。
# To split a large text file into smaller files of 1000 lines each: split file.txt -l 1000 # To split a large binary file into smaller files of 10M each: split file.txt -b 10M # To consolidate split files into a single file: cat x* > file.txt
connpass api
connpassの勉強会の情報をAPIで取得する。
curl -XGET "https://connpass.com/api/v1/event/?ymd=20170214&count=100" | jq .
akka 2.4.17
セキュリティ系のパッチ。
- JavaSerializer is enabled (default in Akka 2.4.x)
- TLS is disabled or TLS is enabled with akka.remote.netty.ssl.security.require-mutual-authentication = false (which is still the default in Akka 2.4.x)
- regardless of whether untrusted mode is enabled or not
Terminator Keybindings
読み進めてみる。
https://linux.die.net/man/1/terminator
- Ctrl+Shift+N / Ctrl+Shift+P で隣のウィンドウへ移動(分割時)
- Ctrl+Shift+E でタブを縦に分割
なお、ctrl + shift
No name provided in package.json
package.jsonのなかにnameやversionがない状態でnpm install
などをやるとこのエラーになる。
split BSD vs GNU
-d
の有無が主な違い。
coreutilsをmacportsだかhomebrewだかでいれてgsplit
ってすれば、GNU版のsplitがつかえる(-dオプションがつかえる)
apple.stackexchange.com
gitbook-cli
npm install -g gitbook
からの、
gitbook serve
で、ローカルからGitBookの見た目をブラウザで確認出来る。いちおう変更をwatchしてくれるけど、Emacsだと#のファイルが出来てコケる。
yspel
Yahooの校正APIをキックしているようだ。
digdag 0.9.4
cli的にはこんなの
digdag secret --local
が使えるようになった。
Release v0.9.4 · treasure-data/digdag · GitHub
だからメールのパスワードの設定は digdag secret --local --set mail.password=...password...
こんな感じ。
なお、サンプルコードが古いままなので直した。 github.com
たぶん次のリリースで反映されると思う。