Skip to content

Instantly share code, notes, and snippets.

View hebasto's full-sized avatar
🇺🇦
Bitcoin, Math

Hennadii Stepanov hebasto

🇺🇦
Bitcoin, Math
View GitHub Profile
@hebasto
hebasto / ledger_nwjs.md
Last active February 3, 2021 06:58
Ledger Nano S and Chrome Apps EOL
@hebasto
hebasto / start_electrum.sh
Last active September 8, 2018 09:18
Convenient script to run Electrum on Tails
#!/bin/bash
set -o errexit
#set -o xtrace
#
# start_electrum.sh
#
# This script launches Electrum Bitcoin Wallet on Tails OS.
# Ledger Nano S hardware wallet is supported.
#
# Tails 3.9 (2018-09-04), https://tails.boum.org
@hebasto
hebasto / ask.sh
Created July 27, 2018 17:45
Bash General-Purpose Yes/No Prompt Function ("ask")
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
ask() {
# https://djm.me/ask
local prompt default reply
while true; do
@hebasto
hebasto / gitian-build.py
Last active September 22, 2020 22:37
bitcoin/contrib/gitian-build.py mod
#!/usr/bin/env python3
#
# bitcoin/contrib/gitian-build.py
#
# Mods:
# * no package management
# * default --jobs 4
# * always --detach-sign
# * always --no-commit
@hebasto
hebasto / ThreadSafeMessageBox.md
Last active April 30, 2019 11:21
Details of ThreadSafeMessageBox using in Bitcoin Core

The ThreadSafeMessageBox() messages are rendered in two ways:

  • by noui_ThreadSafeMessageBox() using LogPrintf() and fprintf(stderr, ...) with adding translated type prefix ("Error" / "Warning" / "Information")
  • by BitcoinGUI::message() using QMessageBox with adding translated type suffix ("Error" / "Warning" / "Information") to the window title. Note: On macOS, the window title is ignored (as required by the macOS Guidelines)

The ThreadSafeMessageBox() is called by some functions:

  • AbortNode() and InitRPCAuthentication() pass translated messages with "Error: " prefix
  • FatalError() passes non-translated messages with "Error: " prefix
  • InitError(); some passed messages are translated, some are not
@hebasto
hebasto / bitcoin-builds-meeting-2020-03-18.md
Created March 19, 2020 23:18
IRC #bitcoin-builds meeting on 2020-03-18
@hebasto
hebasto / carbon
Created March 21, 2020 23:28 — forked from fanquake/carbon
dyld: bind: bitcoin-qt:0x10A9BB198 = CarbonCore:_LocaleRefFromLocaleString, *0x10A9BB198 = 0x7FFF3400E559
dyld: bind: bitcoin-qt:0x10A9BB278 = LaunchServices:_ReleaseIconRef, *0x10A9BB278 = 0x7FFF34302CD8
dyld: bind: bitcoin-qt:0x10A9BB298 = CarbonCore:_UCCompareText, *0x10A9BB298 = 0x7FFF33FB5FCB
dyld: bind: bitcoin-qt:0x10A9BB2A0 = CarbonCore:_UCCreateCollator, *0x10A9BB2A0 = 0x7FFF33FB5A14
dyld: bind: bitcoin-qt:0x10A9BB2A8 = CarbonCore:_UCDisposeCollator, *0x10A9BB2A8 = 0x7FFF33FB8C62
dyld: bind: bitcoin-qt:0x10A9BB2B0 = CarbonCore:_UCKeyTranslate, *0x10A9BB2B0 = 0x7FFF33FBBBD0
diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui
index 77e9afe89..8b7080083 100644
--- a/src/qt/forms/debugwindow.ui
+++ b/src/qt/forms/debugwindow.ui
@@ -216,17 +216,17 @@
</widget>
</item>
<item row="7" column="0">
- <widget class="QLabel" name="labelNetwork">
- <property name="font">