Skip to content

Instantly share code, notes, and snippets.

View Nikolaj-K's full-sized avatar
💭
I'm combinating Why's.

Nikolaj Kuntner Nikolaj-K

💭
I'm combinating Why's.
  • DLR Germany, IST Austria, Infineon, ...
  • Vienna
View GitHub Profile
@Nikolaj-K
Nikolaj-K / btc_scan.py
Last active April 29, 2025 14:04
Matching generated private keys against the funded ledger
"""
Script discussed in the video:
https://youtu.be/i2QaBjCvMN4
How to steal all bitcoin (on average 10^-60 of it per day)
This script checks whether a given Bitcoin private key (int) has
funds using a CSV snapshot of the blockchain ledger.
This ordered CSV of currently funded addresses can be downloaded from:
http://addresses.loyce.club/
@Nikolaj-K
Nikolaj-K / priv_to_pub.py
Last active February 2, 2025 18:37
priv-key to pub-key on the Bitcoin elliptic curve
"""
Bitcoin elliptic curve pub-key from priv-key in raw python, as dicusssed in the video
https://youtu.be/RZzB-vPFYmo
This is a follow-up to the previous video
https://youtu.be/LYN3h5DjeXw
This script is directly based off
https://github.com/peterscott78/offline_signer/blob/master/ecdsa_keys.py
@Nikolaj-K
Nikolaj-K / green_stocks_tmp.md
Created February 1, 2021 19:20
green stocks tmp
@Nikolaj-K
Nikolaj-K / bitcoin_priv_key_address_wif.py
Last active January 10, 2022 21:43
From secret private key to address and WIF - on Bitcoin
"""
Discussed in the video
https://youtu.be/LYN3h5DjeXw
See e.g.
https://allbitcoinprivatekeys.com/1
* For the following we use Bitcoin specification conventions.
* Essentially all those notions were around before and later blockchain
@Nikolaj-K
Nikolaj-K / hossenfelders.md
Last active November 21, 2021 17:32
Sabine Hossenfelder's Superdeterminism

Sabine Hossenfelders Superdeterminism

Introduction

This weeks paper is

Superdeterminism: A Guide for the Perplexed by Sabine Hossenfelder with some notable reference to other papers.

Exposition paper. In 10 section, 20 pages. Read

@Nikolaj-K
Nikolaj-K / linear_normal_stochastic.py
Last active January 12, 2021 23:01
linear-normal rising stock model
import numpy as np
import matplotlib.pyplot as plt
# Config
n = 1000 # Compute 1000 grid points
ys = np.zeros(n + 1)
ys[0] = 25000 # $
y_fin = 32000 # $
sigma = 22 # $
@Nikolaj-K
Nikolaj-K / subsets_of_singleton.py
Created January 11, 2021 18:51
How many subsets does the set {7} have?
"""
This is the text and python script discussed in the video
https://youtu.be/EEaRWtZEXwk
"""
"""
=== Symbols ===
Logical symbols
$\land\ \lor\ \forall\ \exists\ \implies\ \bot\ =\ \in$
@Nikolaj-K
Nikolaj-K / spherical_pendulum.py
Last active October 20, 2023 17:27
Spherical pendulum simulation and animation
"""
Run via python path/to/spherical_pendulum_sim.py
Simulation explained in this video:
https://youtu.be/p0waArLc0rA
"""
import matplotlib
import matplotlib.pyplot as plt
@Nikolaj-K
Nikolaj-K / stream_texts_candidates.md
Last active March 4, 2021 20:54
Candidates to read on the stream, please comment
@Nikolaj-K
Nikolaj-K / su2_kinetic_energy.txt
Created December 18, 2020 21:55
SU(2) theorist computes Kinetic Energy with this one weird trick
Text for the video dicussed in
https://youtu.be/_q3ZIXLu1yw
===== Kinetic energy via SU(2) =====
==== Theorems ====
For $2\times 2$ matrices,
$\bullet$ $\det\big(A + B\big) = \det(A) + \det(B) + {\mathrm{tr}}\big({\mathrm{adj}}(A)\cdot B\big)$