Skip to content

Instantly share code, notes, and snippets.

View EggPool's full-sized avatar

EggPool EggPool

  • EggPool
View GitHub Profile
@EggPool
EggPool / queue_stats.tsv
Created October 12, 2020 13:26
Nyzo CE Queue stats - 2020-11-12 - Donate/Tip to id__8aDKIi7xrHVHPZ3xDDpEDVc-Ep3.X~TXJXCccvJp4GJbUQ9H~Vzh
We can make this file beautiful and searchable if this error is corrected: No tabs found in this TSV file in line 0.
Number_of_tickets Number_of_ips
1 5009
2 159
3 80
4 60
5 188
6 22
7 32
8 255
9 100
@EggPool
EggPool / nyzo_tickets.tsv
Created October 12, 2020 13:24
Nyzo CE Queue and tickets - 2020-10-12 - Donate/Tip to id__8aDKIi7xrHVHPZ3xDDpEDVc-Ep3.X~TXJXCccvJp4GJbUQ9H~Vzh
We can't make this file beautiful and searchable because it's too large.
IP NICK ID TICKETS
2.56.215.83 Tauredunum 454abc4f8960ec5de6a5aa918f3402e54c9b4c5e7cecfb47d9a9309db2477052 15
3.0.84.43 ^‎(〃∀〃) b1cb8b1259153130a1e2c096866d370e5461f8741e89b8c57823bc1e11736ad0 15
3.9.134.208 senbo e8ec5ab7510383642fe2eafc8763865dee30dc7a6e04a768fd80bcfb21959458 15
3.9.180.252 nyzocn 621800b438ab5946e8c573f4dd68798d24bb555b09e01b02ed8e3df523afa9c8 15
3.10.117.134 tanat e3757c7ee6a591f2b1813b458d9ae743a903a711c20a096b000ffc4c4eef5464 15
3.10.198.102 ramb 7bc975ee4bc2283b5813375c8a222144a8f5a930b983d336a430ebbedfa4f54c 15
3.12.50.104 Teacher1 75bac26c4e09bc126d038a0f4609fa81cabf7c78565328061613abbf89a9f7bf 15
3.13.28.173 ONEMON0 2c7aa44280e51f63b68fa35b6b9cb1a623506ca99be0b6b9a0bf1ea6edc883bd 15
3.13.67.49 ONEMON17 b86448b7f078f170315b31056cd7abb9fc8d1bc8c61ac544425ac1717f7a30e3 15

EggdraSyl - August 2019
MIT Licence

Preamble

These are semi organized notes about a useable voting mechanism that could be used for governance purpose in the context of blockchains.
This may borrow ideas and concept from game theory, prediction markets and futarchy.
I'm not an expert in these fields, so this could be nuts or already known under other names.
I'm trying to stick with the "Real world principle" of Bismuth, and do things in a pragmatic rather than theorical way.

Why voting is hard to do well

@EggPool
EggPool / node_sentinel.py
Created July 27, 2019 12:34
Bismuth Node Sentinel Python 3.7
"""
Bismuth Node
Cron sentinel by @iyomisc
To be run every minute.
Updated for Python3.7 by default
"""
import subprocess
# Edit this if you are not using the standard invocation
@EggPool
EggPool / cmd_hn_reg_round.py
Created July 20, 2019 20:34
cmd_hn_reg_round.py
"""
cmd for the hn_reg_round command.
Usage:
python3 cmd_hn_reg_round.py round
"""
#!/bin/bash
# 2018 - Bismuth Foundation and NodeSupply
# Distributed under the MIT software license, see http://www.opensource.org/licenses/mit-license.php.
# Usage: ./bisnodes-install.sh
#
# Setup a regular Bismuth node and hypernode on a fresh Ubuntu 18 install.
# ATTENTION: The anti-ddos part will disable http, https and dns ports.
@EggPool
EggPool / Bismuth-multi-mining.md
Last active September 14, 2018 15:31
Proposal: multi-mining algorithm management for Bismuth crypto-currency

EggdraSyl - Sept 2018
From earlier unpublished notes.

What?

Instead of having a single simple mining algorithm like now, move to a dual (or more) mining algorithm system.

Why?

The current BIS mining algo is pretty simple (2 sha rounds + diff matching) and can be ported to fpgas and asics with little difficulty and a huge increase in hash/w.

@EggPool
EggPool / node_sentinel.py
Created September 14, 2018 12:41
Bismuth Node Sentinel
"""
Bismuth Node
Cron sentinel by @iyomisc
To be run every minute.
"""
import subprocess
# Edit this if you are not using the standard invocation
PYTHON_EXECUTABLE='python3'
# never remove the str() conversion in data evaluation or database inserts or you will debug for 14 days as signed types mismatch
# if you raise in the server thread, the server will die and node will stop
# never use codecs, they are bugged and do not provide proper serialization
# must unify node and client now that connections parameters are function parameters
# if you have a block of data and want to insert it into sqlite, you must use a single "commit" for the whole batch, it's 100x faster
# do not isolation_level=None/WAL hdd levels, it makes saving slow
VERSION = "4.2.6" # .025 - more hooks
@EggPool
EggPool / no_ec2.md
Created July 25, 2018 13:24
block amazon IPs

Block amazon's IP at OS level to avoid botnet attacks

Ubuntu, iptables

Prerequisites

sudo apt install jq wget

Install (user dir)