Skip to content

Instantly share code, notes, and snippets.

View stijnopheide's full-sized avatar

Stijn Opheide stijnopheide

View GitHub Profile
❯ tendermint node
E[2020-07-01|20:36:34.756] abci.socketClient failed to connect to tcp://127.0.0.1:26658. Retrying... module=abci-client connection=query err="dial tcp 127.0.0.1:26658: connect: connection refused"
I[2020-07-01|20:36:37.770] Version info module=main software=0.33.5 block=10 p2p=7
I[2020-07-01|20:36:37.780] Starting Node service module=main impl=Node
I[2020-07-01|20:36:37.790] Started node module=main nodeInfo="{ProtocolVersion:{P2P:7 Block:10 App:1} DefaultNodeID:e5a6ca09229041270896b1598faee0d0d56859b5 ListenAddr:tcp://0.0.0.0:26656 Network:test-chain-g6Kt1w Version:0.33.5 Channels:4020212223303800 Moniker:engel Other:{TxIndex:on RPCAddress:tcp://127.0.0.1:26657}}"
I[2020-07-01|20:36:37.814] Executed block module=state height=3 validTxs=0 invalidTxs=0
I[2020-07-01|20:36:37.817] Committed state module=state hei
(defn create-tempfile
[suffix]
(let [f (File/createTempFile "yada-" suffix)]
(.deleteOnExit f)
f))
(defn save-body-to-file
[ctx body-stream media-type & args]
(let [temp-file (create-tempfile (str "." (second (str/split media-type #"/"))))]
(md/chain
@stijnopheide
stijnopheide / gist:afefbc0d0952d71efaf5
Last active August 29, 2015 14:18
Cursive parens balancing in IntelliJ 14.1.1
Cursive version: 0.1.51
IntelliJ version: 14.1.1
[] = the position of the cursor
[](let [x y] x)
;; type (
expected result: ([])(let [x y] x)
actual result: ([](let [x y] x)