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

Keybase proof

I hereby claim:

  • I am engenegr on github.
  • I am ievdokimov (https://keybase.io/ievdokimov) on keybase.
  • I have a public key ASBeqNMRbB7hA67FJKzJvhNBTx6Bwn-6g6Wq3XjM8TKFzgo

To claim this, I am signing this object:

@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
@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 / 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 / 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 / LNDcommands.md
Last active May 1, 2019 11:08
Cli LND shortcuts

Forked from @jochemin repo, here.

Peers

Add peer

lncli connect [uri]
lncli connect 02d249db09237f974f1c67775accee37a9d1eb3f04f236dda177f5a5c083094f15@i4jogie5l436qgwi73df6n4zmp6td3wvegqjqpckzpfup7vtzycunsqd.onion:9735

Information about a peer

@evd0kim
evd0kim / rng-mnemonic.py
Created April 15, 2019 14:37
Simple script for using together python-mnemonic and Moonbase OneRNG
import sys
import time
from mnemonic import Mnemonic
if __name__ == '__main__':
if len(sys.argv) < 2:
print("Suggested usage: rng-mnemonic <keys number> ")
sys.exit(0)
try:
################################################################################
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 / SignMessage.py
Last active September 8, 2019 15:50
libwally message signing using extended key
import os
import base64
import wallycore as w
h2b = w.hex_to_bytes
b2h = w.hex_from_bytes
mnemonic = "come fury oil antique match off jar ship six feel fall inflict path race impact monitor loan math goose shop autumn area icon barely"
written, seed = w.bip39_mnemonic_to_seed512(mnemonic, None)
assert written == w.BIP39_SEED_LEN_512
@evd0kim
evd0kim / bip32-ec-keys-messages.py
Created September 25, 2019 10:37
Libwally demo-script with message signing
# see also https://github.com/afilini/wally-examples/blob/master/SignMessage.ipynb
import ctypes
from wallycore import *
import base64
def sign_message(privkey, message=""):
"""
returns signed message for derived address
:return: