@peccul is peccu

(love peccu '(emacs lisp cat outdoor bicycle mac linux coffee))

Install elasticsearch plugins and kibana plugins behind the proxy.

elasticsearch

Set proxy configurations to env $ES_JAVA_OPTS like below.

ex: installing x-pack

ES_JAVA_OPTS="-Dhttp.proxyHost=proxy.example.com -Dhttp.proxyPort=8888 -Dhttps.proxyHost=proxy.example.com -Dhttps.proxyPort=8888" ./bin/elasticsearch-plugin install x-pack

kibana

Kibana doesn't support proxy yet...

You need to download plugins directory by curl, wget, etc. and run bin/kibana-plugin.

curl -LO https://artifacts.elastic.co/downloads/packs/x-pack/x-pack-5.4.1.zip
./bin/kibana-plugin install file://$(pwd)/x-pack-5.4.1.zip

github.com

www.elastic.co

iOS11から標準カメラでQRCodeを読めるようになったのでみているページのURLをQRCodeで表示するブックマークレットを書いた

iOS11から標準カメラでQRCodeを読めるようになったのでwindow.location.hrefをQRCode表示するブックマークレットを書きました。

お気に入りのURLにコピペすればおそらく動きます。

Appleらしさあふれる作りですよね。QRCodeって選ばなくてもカメラに写ればQRCode読み取れたんだけどアクセスする?みたいな通知してくれるの。

続きを読む

標準入力の内容をチャットに投稿する2 (Node.js版)

peccu.hatenablog.com

こんな記事を書きましたが、結局渡す内容によってcurlが実行できないことがあったのでNode.jsで書き直しました。 依存パッケージなしで書いてみました。

ただ、プロキシ越えは未実装です。。。

続きを読む

標準入力の内容をチャットに投稿する1 (bash, curl版)

長時間かかるコマンドの実行結果をチャットに通知したくなったので、スクリプトを書きました。 (コマンド実行後の定型文通知や引数に指定した文字列の通知はすでに利用していたが、結果を通知したくなった)

続きを読む