Skip to content

Instantly share code, notes, and snippets.

You must use Bash as your shell. Because /dev/tcp is a magic provided by Bash.

$ exec 5<>/dev/tcp/{server_host}/{tcp_port}
$ echo '{"jsonrpc":"2.0","id":"1","method":"server.version","params":[]}' >&5; cat <&5

Keybase proof

I hereby claim:

  • I am cryptcoin-junkey on github.
  • I am cryptcoinjunkey (https://keybase.io/cryptcoinjunkey) on keybase.
  • I have a public key whose fingerprint is D5CB E128 7466 876E 19A4 3CEC B07C CF4C 1B76 112D

To claim this, I am signing this object:

@cryptcoin-junkey
cryptcoin-junkey / insight-mona.statefulset.yaml
Created February 17, 2018 01:14
A part of yaml files for Insight-mona in K8s.
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
labels:
run: insight-mona
name: insight-mona
namespace: insight
spec:
podManagementPolicy: OrderedReady
replicas: 1
  CIP: 
  Title: Non Resendable Asset
  Authors: Cryptcoin Junkey
  Discussions-To: 
  Status: Draft
  Type: Standards
  Created: 2018-04-05
apiVersion: v1
items:
- apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
labels:
run: lightning-mona
name: lightning-mona
namespace: lightning
spec:
  CIP: 12
  Title: Enabling External Automator through Broadcasts
  Authors: Cryptcoin Junkey
  Discussions-To: 
  Status: Draft
  Type: Standards
  Created: 2018-06-23
@cryptcoin-junkey
cryptcoin-junkey / server.ts
Created August 17, 2018 02:42
A part of Tipple. (Command parser. Licensed under MIT.)
import express = require('express');
import twit = require('twit');
import report_queue = require('./report-queue');
import utils = require('./utils');
import tip = require('./tip');
const bodyParser = require('body-parser');
const app = express();
const crypto = require('crypto');
const config = require("./config.json");
@cryptcoin-junkey
cryptcoin-junkey / commands.md
Last active September 24, 2018 11:34
How to upgrade Monaparty Federated Node.

2 steps.

Upgrade containers

Exec rebuild and update.

fednode rebuild
fednode update
const axiosBase = require('axios');
const BURN_START_MAINNET = 1165699
const BURN_END_MAINNET = 1179440
const axios = axiosBase.create({
baseURL: 'https://mpchain.info/api/burns',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
@cryptcoin-junkey
cryptcoin-junkey / memorandom.md
Last active October 5, 2020 01:58
いま Monaparty にスマコン実装するなら、こんな感じ。