構成としては以下でやっていく
- OhmGraphite でリソース情報を取得する
- InfluxdDB にメトリクスをプッシュ
- [Grafana][] で可視化
- ダッシュボードには OhmGraphite で紹介されてる https://grafana.com/grafana/dashboards/11601-ohm-influx/ を使う
- [nssm][] で各種サービス化
構成としては以下でやっていく
git clone git@github.com:microsoft/vscode.git | |
cd vscode | |
# CommitID/Tag/Branch | |
BASE=1.58.0 | |
HEAD=1.59.0 | |
## With Rest API and jq | |
# This will fail if too many commits to put these as querystring. In this case, it uses `-n 10`. | |
FORMAT='* [#\(.number)](\(.url)) \(.title)' |
Farmenter(1) は、Farmenter をフル稼働させ続けるのに必要な Cloche 台数。 80 tick で 1 個必要。
骨粉/tick は成果物すべてコンポスターに突っ込んだ時の 1 tick あたりの骨粉期待値。参考資料 https://minecraft.gamepedia.com/Composter#Composting
val connectionFactory = ConnectionFactories.get("r2dbc:mysql://root@127.0.0.1:3306/test") | |
// Wrapper to initialize each connections | |
val connectionFactory2 = object : ConnectionFactory { | |
override fun getMetadata(): ConnectionFactoryMetadata = connectionFactory.metadata | |
override fun create(): Publisher<out Connection> = | |
connectionFactory | |
.create() | |
.toMono() | |
.flatMap { connection -> |
Visualizing script for steps dependencies.
val sql = """ | |
INSERT INTO `person` (`birth`, `name`) " | |
VALUES (?, ?name) | |
""" | |
connection.createStatement(sql) | |
.bind(0, LocalDateTime.of(2019, 6, 25, 12, 12, 12)) | |
.bind("name", "Some one") | |
.returnGeneratedValues("generated_id") | |
.execute() // return a Publisher include two Results. |
git clone https://github.com/github/hub.git | |
cd hub | |
git log --grep="^Merge pull request #[0-9]* from .*/.*" --pretty=format:"%B" \ | |
| sed -nr "/^Merge pull request /{N;N;s/^Merge pull request (#[0-9]+) from .*\\n\\n/\1 /p}" |
OffscreenCanvas
では filter
の指定に url(...)
が使えない。
// Reference filters (e.g. 'url()') are not expected to work in Workers
https://wiki.whatwg.org/wiki/OffscreenCanvas から引用。
とのことだけれど、Google Chrome 70.0.3538.110 では worker ではなくメインスレッドでも使えなかった。
現状の回避策としては旧来通り、DOM に追加しない Canvas を使うことになりそう。
In your terminal:
$ patch -p1 < auto-miner.patch
And you might need to edit some duplicated IDs.
基本はこれ: http://blog.lwlv.net/archives/1010
mirakurun/chinachu を管理する pm2 の起動に紐づくアカウント作成。
Chinachuの実行ユーザー作成(既存のユーザーにする場合は不要)