Skip to content

Instantly share code, notes, and snippets.

@planethouki
planethouki / zbx_template.md
Last active April 16, 2018 00:32
Zabbix Template For noip

Application

DDNS

Item

設定名 設定値
名前 proc.num[noip2]
キー proc.num[noip2]
更新間隔 30s
ヒストリ 90d
トレンド 365d
@planethouki
planethouki / file0.txt
Last active July 11, 2018 12:14
nem catapult.server 実行1 とりあえず実行 ref: https://qiita.com/planethouki/items/c1ed13cbc88f3bc5c06e
# cp ../resources/* resources/
@planethouki
planethouki / file0.txt
Last active July 11, 2018 12:15
nem catapult.server 実行2 ハーベストする ref: https://qiita.com/planethouki/items/c2fa3875a82c310376d4
# rm -r data/
@planethouki
planethouki / file0.txt
Last active July 11, 2018 12:15
nem catapult.server 実行3 catapult.restの実行 ref: https://qiita.com/planethouki/items/066f65fcdeaf4bf68126
# rm -r data/
@planethouki
planethouki / aggsendtwo.js
Last active August 13, 2018 05:40
nem catapult aggregate tx その1 1-to-nアドレス宛送信 ref: https://qiita.com/planethouki/items/4cebed045dec20be59f4
const nem2Sdk = require("nem2-sdk");
const Address = nem2Sdk.Address,
Deadline = nem2Sdk.Deadline,
Account = nem2Sdk.Account,
UInt64 = nem2Sdk.UInt64,
NetworkType = nem2Sdk.NetworkType,
PlainMessage = nem2Sdk.PlainMessage,
TransferTransaction = nem2Sdk.TransferTransaction,
Mosaic = nem2Sdk.Mosaic,
@planethouki
planethouki / aggcosign.js
Last active July 2, 2018 07:55
nem catapult aggregate tx その2 エスクロー ref: https://qiita.com/planethouki/items/bf03d50e058ed72a3f0b
const nem2Sdk = require("nem2-sdk");
const Address = nem2Sdk.Address,
Deadline = nem2Sdk.Deadline,
Account = nem2Sdk.Account,
UInt64 = nem2Sdk.UInt64,
NetworkType = nem2Sdk.NetworkType,
PlainMessage = nem2Sdk.PlainMessage,
TransferTransaction = nem2Sdk.TransferTransaction,
Mosaic = nem2Sdk.Mosaic,
@planethouki
planethouki / file0.txt
Last active June 3, 2018 06:10
Bitcoinトランザクション作成手順 通常のP2PKH ref: https://qiita.com/planethouki/items/1ab965b771731e2a27b6
<root>
└─bitcoin-0.15.1
├─bin
├─data
│ └─regtest
│ ├─blocks
│ │ └─index
│ ├─chainstate
│ └─database
├─include
@planethouki
planethouki / file0.txt
Last active June 3, 2018 06:10
Bitcoinトランザクション作成手順 秘密の値でロックするP2SH ref: https://qiita.com/planethouki/items/6d8db3d880e8b2c21db6
OP_SHA256 <SecretHash> OP_EQUAL
@planethouki
planethouki / file0.txt
Last active June 6, 2018 23:48
nem catapult secret lock/proof tx 異なる2つのMIJIN_TESTチェーン間でのアトミックスワップ ref: https://qiita.com/planethouki/items/3d6c743f58692adf5814
<root>
├── catapult-service-bootstrap-public
│   ├── LICENSE
│   ├── README.md
│   ├── bin
│   ├── build
│   ├── clean-all
│   ├── clean-data
│   ├── data
│   ├── docker-compose-mmapv1.yml
@planethouki
planethouki / file0.txt
Created June 3, 2018 11:00
nem catapult secret lock/proof tx 有効期限と複数回送信 ref: https://qiita.com/planethouki/items/5d6e532e84b77f16ddc7
# node secretlock_disp.js
[1528010648244] Bob(Private) have 818181817 nem:xem
[1528010648244] Alice(Private) have 1 nem:xem
[1528010648244] Alice(Public) have 409089866.00019 nem:xem
[1528010648244] Alice(Public) have 100 foo:bar
[1528010648244] Bob(Public) have 409090161.99981 nem:xem
[1528010648244] Bob(Public) have 1 foo:bar