Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Daniel Himmelstein dhimmel

🎯
Focusing
View GitHub Profile
View btg_attack_output.txt
Reorg 0 at 2020-01-23T18:01:32 db ID: 85779
Depth 14
Length 13
Est attacker chain duration 2:13:28
Est attacker hashrate 2.53 MH/s
Nicehash hashrate 3.41 MH/s
Nicehash price 0.86 BTC/MH/s/Day
Est Nicehash cost 0.2013653 BTC
Reorg Blocks
@discdiver
discdiver / jupyterlab_shortcuts.md
Last active Jun 3, 2021
Common Jupyter Lab Keyboard Shortcuts
View jupyterlab_shortcuts.md

If you are on a Mac, substitute command for control. Don't type the + (it means press both keys at once).

Shortcuts when in either command mode (outside the cells) or edit mode (inside a cell):

  • Shift + Enter run selected cell or cells - if no cells below, insert a code cell below

  • Ctrl + B toggle hide/show left sidebar

  • Ctrl + S save and checkpoint

  • Ctrl + Shift + S save as

@metalicjames
metalicjames / btg-attacks.md
Last active May 13, 2021
Bitcoin Gold (BTG) was 51% attacked
View btg-attacks.md

Bitcoin Gold (BTG) was 51% attacked

Preamble

Bitcoin Gold is a Bitcoin hard-fork that aims to be GPU-mineable by using the Equihash algorithm with parameters (144, 5) also known as "Zhash". The Bitcoin Gold website claims Zhash "uses more memory than an ASIC can muster, but runs fine on many graphics cards". Bitcoin Gold was previously 51% attacked in May 2018 when it was estimated that up to $18 million worth of BTG was double-spent.

The Attacks

Between Thursday and Friday we detected two deep reorgs on BTG, both of which contained double-spends. Their details are listed below. All times are GMT.

@dhimmel
dhimmel / bitcoin-random-outcomes.ipynb
Last active Jan 29, 2018
Using Bitcoin to randomly determine a future outcome involving untrusted parties
View bitcoin-random-outcomes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sorce
sorce / send_counterparty_from_trezor.py
Last active Nov 5, 2019
Create, sign and send a counterparty transaction from an address controlled by a trezor
View send_counterparty_from_trezor.py
#!/usr/bin/env python
'''
if you find this script helpful and would like to give some crypto to
the cause, we would be very happy to receive it :)
donate bitcoin / counterparty: 3L19gTtMMJHpkAjYVduUZETdduwAfM7NGR
'''
import sys
import json
import requests
from requests.auth import HTTPBasicAuth
@cgreene
cgreene / NICTA_xenome_license.txt
Last active Nov 10, 2016
The license for Xenome software, which is related to this blog post: https://medium.com/@greenescientist/when-software-goes-missing-f6a0dffd68e5
View NICTA_xenome_license.txt
[NON-COMMERCIAL] SOFTWARE LICENSE AGREEMENT
PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING,
INSTALLING OR USING NATIONAL ICT AUSTRALIA LIMITED (NICTA) SUPPLIED SOFTWARE. BY
DOWNLOADING, INSTALLING OR USING THE SOFTWARE YOU ARE CONSENTING TO BE BOUND BY
THIS LICENSE. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS LICENSE, THEN DO
NOT DOWNLOAD, INSTALL OR USE THE SOFTWARE.
This License Agreement is entered into between National ICT Australia Limited
(ABN 62 102 206 173) (herein referred to as "Licensor") and you, the Licensee.
View bitcoin-paper-errata-and-details.md

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

View github-pages-https-lets-encrypt.md
@mitchwongho
mitchwongho / Docker
Last active Jun 15, 2021
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
View README.md