Skip to content

Instantly share code, notes, and snippets.

View evd0kim's full-sized avatar

Ilya Evdokimov evd0kim

  • Citizen of the World
View GitHub Profile

To make automated tests work in Idea:

  1. Download https://github.com/ACINQ/eclair/commit/98bb7be70a4fc96242409b90fbf1ec9c5ff470e6 (latest release).
  2. Compile Eclair with $ '/home/anton/apache-maven-3.6.3/bin/mvn' install -DskipTests (things need to be done this way to get eclair-tests jar file which is not included in prebuilt download package).
  3. Download https://github.com/btcontract/plugin-hosted-channels.
  4. Create a folder <HC>/lib/
  5. Go to <Eclair> folder with compiled stuff.
  6. Copy <Eclair>/eclair-core/target/eclair-core_2.13-0.5.1-tests.jar to <HC>/lib/.
  7. Unpack <Eclair>/eclair-node/target/eclair-node-0.5.1-98bb7be-bin.zip, copy all <UNPACKED>/lib/*.jar to <HC>/lib/.
  8. Open HC in Idea, go to File -> Project structure -> Modules -> Dependencies.
@evd0kim
evd0kim / log_handler_slack.py
Created April 9, 2020 15:29 — forked from GuillaumeDerval/log_handler_slack.py
A --log-handler-script log script for snakemake that pushes the status to Slack
# License: MIT
import socket
from slacker import Slacker
import datetime
import time
import threading
SLACK_TOKEN = 'xoxb-00000000000-000000000000-000000000000000000000000'
CHANNEL_NAME = "your-channel-on-slack"
################################################################################
1. Find number of addresses sending funds to an address
################################################################################
SELECT
COUNT(DISTINCT ARRAY_TO_STRING(inputs.addresses, '')) AS addresses
, MIN(block_timestamp) as start_date
FROM `bigquery-public-data.crypto_bitcoin.transactions` AS txns
, UNNEST(txns.outputs) AS outputs
, UNNEST(txns.inputs) AS inputs
@evd0kim
evd0kim / improved-lnd-bitcoind-mainnet.md
Created January 16, 2019 09:10 — forked from bretton/improved-lnd-bitcoind-mainnet.md
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet.

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@evd0kim
evd0kim / build-orangepipc-gentoo.py
Created June 27, 2018 11:13 — forked from atx/build-orangepipc-gentoo.py
Script for building a Gentoo image for the Allwinner H3, use at your own risk
#! /bin/bash
# This script builds a Gentoo image for the Allwinner H3
# Based on http://linux-sunxi.org/H3_Manual_build_howto
# Tested on Orange Pi PC
set -e
function green {
echo -e '\033[0;32m'$@'\033[0m'
@evd0kim
evd0kim / bitcoin_analysis.py
Created December 30, 2017 09:48 — forked from Olshansk/bitcoin_analysis.py
Basic analysis of some bitcoin stats
from datetime import timedelta
from apscheduler.schedulers.blocking import BlockingScheduler
import requests, json, datetime, numpy, requests_cache
import matplotlib.dates as mdate
import matplotlib.pyplot as plot
import numpy as np
ALL_HISTORICAL_DATA_ENDPOINT = 'https://blockchain.info/charts/market-price?timespan=all&format=json'
NUM_UNIQUE_ADDRESSES = 'https://blockchain.info/charts/n-unique-addresses?timespan=all&format=json'
@evd0kim
evd0kim / OpenFOAM_Forces.py
Created August 15, 2017 13:14 — forked from petebachant/OpenFOAM_Forces.py
Extracting forces and moments from OpenFOAM postProcessing
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 8 09:22:09 2013
@author: pete
"""
import matplotlib.pyplot as plt
import re