Skip to content

Instantly share code, notes, and snippets.

View straumat's full-sized avatar

Stéphane Traumat straumat

View GitHub Profile
@straumat
straumat / bitcoind
Last active May 21, 2020 16:57
Bitcoind debian startup script
#! /bin/sh
### BEGIN INIT INFO
# Provides: bitcoind
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: bitcoind daemon startup script
# Description: bitcoind daemon startup script
### END INIT INFO
rpcauth=bitcoinrpc:2c36ebb190eba7bb00df12ddda7b5115$f1a1d565e8d6aad38b6c31d4c2d922b7f180b020b83fdf4e7fe77bd825fb6607
# Use this instead of rpcauth for server < 0.18
# rpcuser=bitcoinrpc
# rpcpassword=JRkDy3tgCYdmCEqY1VdfdfhTswiRva
server=1
rest=1
txindex=1
rpcthreads=8
rpcbind=127.0.0.1
rpcbind=5.196.65.205
@straumat
straumat / application.properties
Last active June 16, 2017 12:28
Blockchain2graph - applications.properties
# Blockchain2graph.
#
# blockchain2graph configuration.
blockchain2graph.address=5.196.65.205
blockchain2graph.port=8080
blockchain2graph.date.format=HH:mm
#
# Bitcoind access configuration.
bitcoind.hostname=5.196.65.205
bitcoind.port=8332
[Unit]
Description=Blockchain2graph-bitcoin-neo4j
After=syslog.target
[Service]
Environment="SPRING_DATA_NEO4J_URI=bolt://neo4j:b2g135!@localhost"
Environment="BITCOINCORE_HOSTNAME=5.196.65.205"
Environment="BITCOINCORE_PORT=8332"
Environment="BITCOINCORE_USERNAME=bitcoinrpc"
Environment="BITCOINCORE_PASSWORD=JRkDy3tgCYdmCEqY1VdfdfhTswiRva"
version: '2'
services:
# ====================================================================================================================
# https://hub.docker.com/r/ruimarinho/bitcoin-core/
bitcoin-core:
image: ruimarinho/bitcoin-core:0.18.1
volumes:
- ./data/bitcoin-core:/home/bitcoin/.bitcoin
ports:
- 8332:8332
package production.tech.cassandre.trading.bot;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSender;
import org.ta4j.core.BaseStrategy;
import org.ta4j.core.Strategy;
## Introduction
We are going to build and run Taproot Assets Protocol daemon on Ubuntu.
We will need a running LND node and Btcd this way:
<div class="mermaid">
graph LR
TAPD["Taproot Assets Protocol daemon"]
TAPD --> LND["LND"]
I created an asset:
```
docker exec -it 7e64369f79c7 \
tapcli assets mint \
--type normal \
--name roylloCoin \
--supply 999 \
--meta_bytes "Test by Royllo" \
--enable_emission true
```