Skip to content

Instantly share code, notes, and snippets.

openapi: 3.0.0
info:
title: title
version: 1.0.0
servers:
- url: http://127.0.0.1:8080
paths:
/bad:
@mymtw
mymtw / createwif.go
Last active November 30, 2020 02:03
import (
"errors"
"fmt"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil"
"github.com/btcsuite/btcutil/hdkeychain"
"github.com/btcsuite/btcd/btcec"
@mymtw
mymtw / btc
Last active May 17, 2020 17:52
bitcoin
./bitcoin-cli -regtest -rpcwallet=wallet1 listunspent
[
{
"txid": "a9a39d9f388eb7d2d99f79d5f31f0e076a37061b1de5b104fa7500a481cba95b",
"vout": 0,
"address": "2N8RF8rrwxLKtRYLfpRkf9p65hpND3AAFwT",
"label": "",
"redeemScript": "0014dd47e79764938c67a961893b91c97f5cd67517a7",
"scriptPubKey": "a914a66f012b7489f2af076a2a6cebf18658d186080487",
"amount": 50.00000000,
[Unit]
Description=Backend flask webapp gunicorn daemon
Requires=backend.socket
After=network.target
[Service]
Environment="LANG=en_US.UTF-8"
PIDFile=/run/backend/pid
User=mtw
@mymtw
mymtw / javascript encode url
Created December 16, 2015 12:28
javascript encode url
function decode(value) {return decodeURIComponent(value.replace(/\+/g, " "));}