Skip to content

Instantly share code, notes, and snippets.

View brakmic's full-sized avatar
🏠

Harris Brakmić brakmic

🏠
View GitHub Profile
@brakmic
brakmic / runsignet.sh
Last active March 2, 2024 05:53
Build and run Bitcoin Signet
#!/usr/bin/env bash
#-----------------------------------------------------------------------------------------------------#
# Build and run Bitcoin Signet - developed by Kalle Alm (@kallewoof) #
# #
# Follow the development on GitHub: https://github.com/bitcoin/bitcoin/pull/18267 #
# #
# For this script to run you'll have to install several packages first (boost, libevent, libzmq3) #
# Check this doc for more info: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md #
# #
# Script usage: #
@brakmic
brakmic / tor.service
Created July 12, 2019 21:16
tor systemd script
[Unit]
Description=Anonymizing overlay network for TCP
After=network.target nss-lookup.target
[Service]
Type=notify
NotifyAccess=all
PIDFile=/var/run/tor/tor.pid
PermissionsStartOnly=yes
ExecStartPre=/usr/bin/install -Z -m 02750 -o debian-tor -g debian-tor -d /var/run/tor
@brakmic
brakmic / pkginfo.txt.patch
Created March 15, 2019 11:51
Modified pkginfo.txt for CM3 modula compiler build - macOS Mojave 10.14.3 only!
diff --git a/scripts/pkginfo.txt b/scripts/pkginfo.txt
index b644a5c66..3d5bc3347 100644
--- a/scripts/pkginfo.txt
+++ b/scripts/pkginfo.txt
@@ -1,4 +1,4 @@
-import-libs base core front unicode min gui comm caltech-parser caltech-other
+import-libs base core front unicode min gui comm
m3core base core front unicode min
libm3 base core front unicode min
windowsResources core
/***********************************************************
*
* Example based on an idea from the article "Rule of Zero"
* URL: https://blog.rmf.io/cxx11/rule-of-zero
*
* Must be compiled as C++11
************************************************************/
#define _SCL_SECURE_NO_WARNINGS
#define UNICODE
@brakmic
brakmic / hellow.cob
Last active November 24, 2017 23:06
HelloWorld in COBOL (Win32 version)
>>SOURCE FORMAT FREE
IDENTIFICATION DIVISION.
PROGRAM-ID. HelloWorld.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 HWND PIC 9(1) VALUE 0.
01 MSG PIC X(17) VALUE "Hello, World! :-)".
01 CAPTION PIC X(8) VALUE "GnuCOBOL".
01 STYLE PIC 9(1) VALUE 0.
@brakmic
brakmic / hello.cob
Created November 23, 2017 17:59
Hello World in COBOL
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. HELLO-WORLD.
000003 PROCEDURE DIVISION.
000004 DISPLAY 'Hello, World!'
000005 STOP RUN.
@brakmic
brakmic / bitcoin.conf
Created November 16, 2017 12:07
Bitcoin Config
listen=1
daemon=1
server=1
rest=1
externalip=YOUR_EXTERNAL_IP
bind=0.0.0.0
port=8333
maxconnections=64
upnp=0
@brakmic
brakmic / onename_verify
Created October 22, 2017 19:36
onename.com verify
Verifying that "brakmic.id" is my Blockstack ID. https://onename.com/brakmic
@brakmic
brakmic / bitcoin_coinbase_transaction_simplified.cpp
Created October 8, 2017 19:25
Bitcoin Coinbase Transaction (simplified)
class CoinbaseTransaction {
public:
uint256 HashKey;
uint32_t IndexNumber;
uint32_t CoinbaseScriptLength;
uint256 CoinbaseScript;
uint32_t InputSequenceNumber;
};
@brakmic
brakmic / bitcoin_transaction_input_simplified.cpp
Created October 8, 2017 17:25
Bitcoin Transaction Input (simplified)
class TransactionInput {
public:
uint256 HashKey;
uint32_t IndexNumber;
uint32_t SignatureScriptLength;
uint256 ResponseScript;
uint32_t InputSequenceNumber;
};