Skip to content

Instantly share code, notes, and snippets.

@mtlynch
mtlynch / convert.py
Last active February 20, 2018 03:55
Converts transaction history CSV from Abucoins into a format compatible with CointTacking
# Processes Abucoins transaction history CSV into a CSV format that CoinTracking
# can import (Custom Exchange Import).
#
# Example CoinTracking settings: https://imgur.com/4vvEiCo.
#
# Usage: convert.py input.csv output.csv
#
# Author: Michael Lynch <michael@mtlynch.io>
# License: MIT License
We can't make this file beautiful and searchable because it's too large.
block_height unix_timestamp iso_timestamp
0 1433600000 2015-06-06T14:13:20Z
1 1433626546 2015-06-06T21:35:46Z
2 1433627288 2015-06-06T21:48:08Z
3 1433628922 2015-06-06T22:15:22Z
4 1433628961 2015-06-06T22:16:01Z
5 1433629456 2015-06-06T22:24:16Z
6 1433629725 2015-06-06T22:28:45Z
7 1433629837 2015-06-06T22:30:37Z
8 1433630462 2015-06-06T22:41:02Z
2018/02/14 19:04:40.248432 persist.go:73: STARTUP: Logging has started. Siad Version 1.3.1
2018/02/14 19:06:52.289474 synchronize.go:627: INFO: IBD done, synced with 9 peers
@mtlynch
mtlynch / consensus.log
Created March 21, 2018 18:49
Sia 1.3.1 Load Test: Real Data Scenario
2018/03/11 18:46:23.062034 persist.go:73: STARTUP: Logging has started. Siad Version 1.3.1
2018/03/11 18:51:48.735983 synchronize.go:589: WARN: disconnecting from peer 95.78.166.67:9981 because IBD failed: unexpected EOF
2018/03/11 18:59:54.722606 synchronize.go:627: INFO: IBD done, synced with 6 peers
2018/03/21 12:53:17.068560 persist.go:79: SHUTDOWN: Logging has terminated.
@mtlynch
mtlynch / consensus.log
Created April 11, 2018 14:32
Sia 1.3.1 Load Test: Best-Case Scenario
2018/03/21 13:10:11.358317 persist.go:73: STARTUP: Logging has started. Siad Version 1.3.1
2018/03/21 13:31:48.431407 synchronize.go:589: WARN: disconnecting from peer 188.242.52.10:9981 because IBD failed: unexpected EOF
2018/03/21 13:37:52.367653 synchronize.go:589: WARN: disconnecting from peer 85.27.163.135:9981 because IBD failed: unexpected EOF
2018/03/21 13:43:11.445443 synchronize.go:589: WARN: disconnecting from peer 78.46.64.86:9981 because IBD failed: unexpected EOF
2018/03/21 13:45:37.474304 synchronize.go:589: WARN: disconnecting from peer 67.161.95.236:9981 because IBD failed: broken pipe
2018/03/21 13:45:37.475802 synchronize.go:597: WARN: disconnecting from peer 67.161.95.236:9981 failed: not connected to that node
2018/03/21 13:45:37.475802 synchronize.go:627: INFO: IBD done, synced with 7 peers
2018/04/01 12:55:39.636293 persist.go:73: STARTUP: Logging has started. Siad Version 1.3.1
2018/04/01 13:00:29.189758 synchronize.go:627: INFO: IBD done, synced with 8 peers
2018/04/05 06:35:15.666784
services:
sia:
image: mtlynch/sia:1.3.3-rc1
container_name: sia
environment:
- SIA_MODULES=gctrw
restart: on-failure
ports:
- 9981:9981
./siac renter contracts
Contracts:
Host Remaining Funds Spent Funds Spent Fees Data End Height ID GoodForUpload GoodForRenew
sia.overflow.biz:9982 30.99 SC 254.8 mS 2.088 SC 96.47 MB 157998 f90f948819c3b932c84682913ec4518587d5cb105750ce3d74b4995ce71a0e27 true true
shawnhomesc.no-ip.org:9982 30.71 SC 103.5 mS 2.515 SC 104.86 MB 157998 768d8d1510cc47b80243f9f44cd2ed44166e581ead22849855b77f749f5dff88 false false
78.107.6.94:9982 30.64 SC 2.563 mS 2.688 SC 33.55 MB 157998 71cc6b66bc8dac1228fc4942d25dd5060b16769784916b5dea43f86a39f1d4c2 true true
siabox.ignorelist.com:9982 30.33 SC 4.336 mS 2.999 SC 8.39 MB 157998 71d6372e851791f2d340610fad82f21b4d59c9d0cbc8bec39be3a527fdcf806e true true
81.200.59.110:9982
./siac renter
Renter info:
Allowance: 0 H
Spent Funds: 0 H
Storage: 0 H
Upload: 0 H
Download: 0 H
Fees: 0 H
Unspent Funds: 0 H
Allocated: 0 H
Obligation Id Obligation Status Contract Cost Locked Collateral Risked Collateral Potential Revenue Expiration Height Transaction Fees
1ba1ef59587cffae4ccd2a7068fcc3e3abd6db3872506033209cbdbe7790dafa Failed 1 SC 737.1 mS 0 H 0 H 101553 1.328 SC
34bb34487db350597cf781e9717f5a1a5a2b624e2fce76fe3aed0974fd5a4e6d Failed 1 SC 17.95 SC 0 H 0 H 101794 1.33 SC
ac99a3a470fba6e0f9fe85c8026b1b30424de8269a8da4fd2d524e9b96e286a3 Failed 1 SC 16.97 SC 0 H 0 H 102344 1.33 SC
f86c1897cc5cc3fc66473eb2192c414da161d11cea5ed16c56bb9513595003c0 Failed 1 SC 15.55 SC 0 H 0 H 102881 1.33 SC
bf4dd42d7d42e10636e41d07
$ ./script/_serve_dev.sh
> minimal-mistakes@4.9.0 build:js /home/mike/mtlynch.io
> npm run uglify
> minimal-mistakes@4.9.0 uglify /home/mike/mtlynch.io
> uglifyjs assets/js/vendor/jquery/jquery-1.12.4.min.js assets/js/plugins/jquery.fitvids.js assets/js/plugins/jquery.greedy-navigation.js assets/js/plugins/jquery.magnific-popup.js assets/js/plugins/jquery.smooth-scroll.min.js assets/js/_main.js assets/js/_anchors.js -c -m -o assets/js/main.min.js
Configuration file: _config.yml