Skip to content

Instantly share code, notes, and snippets.

View johnzweng's full-sized avatar

Johannes Zweng johnzweng

View GitHub Profile
@johnzweng
johnzweng / keybase.md
Created May 7, 2017 06:55
Github proof for keybase.io

Keybase proof

I hereby claim:

  • I am johnzweng on github.
  • I am johnzweng (https://keybase.io/johnzweng) on keybase.
  • I have a public key ASBoU3gbSHQZPDeYdljl32-5iClAuzGOO1Cb2ZzF2yi8QAo

To claim this, I am signing this object:

/**
* Johannes Zweng <john@zweng.at>, 2017
*
* This simple script just loads the 2 bancor contracts (Crowdsale and BNT Token)
* into the geth client and then provides a single status function which you
* can call on the geth console to query the current status of the crowdsale.
*
* Usage:
* ------
* 1) Start geth instance
@johnzweng
johnzweng / web3-status-im-tokensale.js
Created June 20, 2017 11:36
Status script for watching the status.im smartcontract crowdsale
/**
* Johannes Zweng <john@zweng.at>, 2017
*
* This simple script just loads the Status.im contracts (Crowdsale and Tokens)
* into the web3 Script API and then provides a single status function which you
* can call on the console to query the current status of the crowdsale.
*
* Usage:
* 1) Store this gist locally on your computer.
* 2) make sure you have "web3" and "bignumber.js" node modules installed. For example like this:

Status of CUDA 9 installation on my GCE instance:

Ubuntu version:

> lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:    xenial
Verifying my Blockstack ID is secured with the address 1FemuY4GdW1ToSfF4P6Nex5zR8N2vRZSda https://explorer.blockstack.org/address/1FemuY4GdW1ToSfF4P6Nex5zR8N2vRZSda
@johnzweng
johnzweng / Libra technical overview.md
Created June 19, 2019 12:49
First technical view on Libra

First technical view on "Libra":

Author: Johannes Zweng (johannes@zweng.at) Date: 19.6.2019

Notes:

  • Will be a new blockchain, not based on an existing blockchain
  • Permissioned blockchain (not everybody can be a validator)

Analyze IDEA Performance Issues:

January 10, 2019

Setup:

  • IDEA Version and JVM runtime (JVM is the bundled one by JetBrains):
    IntelliJ IDEA 2018.3.3 (Ultimate Edition)
    Build #IU-183.5153.38, built on January 9, 2019
    JRE: 1.8.0_152-release-1343-b26 x86_64
    
@johnzweng
johnzweng / remap_keys.sh
Last active November 13, 2020 06:32
Remap key codes on macOS
#!/usr/bin/env bash
#
# Remap some keys on macOS (>=Sierra)
#
# Johnny, 2.11.2020
#
# Sources: based on https://gist.github.com/zbstof/6cba7d54e105cc5148c8a943d1581cad
#
@johnzweng
johnzweng / check_taproot_signalling.sh
Created June 11, 2021 10:19
Check Taproot Signalling
#!/bin/bash
#
# This shell script allows you to check the Taproot signalling on your own
# Bitcoin fullnode (i.e. it does what https://taproot.watch/ does, but
# verified by your own node).
#
# Be a self-sovereign Bitcoiner!
#
# DON'T TRUST, VERIFY! :-)
@johnzweng
johnzweng / BitcoinVersioning.md
Created August 6, 2021 05:55 — forked from gavinandresen/BitcoinVersioning.md
Suggestions on more smoothly rolling out blockchain validation rule changes

Blockchain Rule Update Process

We recently rolled out two changes to the Bitcoin block acceptance rules (BIP16 and BIP30); this document records the lessons learned and makes recommendations for handling future blockchain rule changes.

Note: there are "soft" rule changes and "hard" rule changes. "Soft" changes tighten up the rules-- old software will accept all the blocks and transactions created by new software, but the opposite may not be true. "Soft" changes do not require the entire network of miners and merchants and users to upgrade or be left behind.

"Hard" changes modify the rules in a way that old, un-upgraded software consider illegal. At this point it is much, much more difficult (some might say impossible) to roll out "hard" changes, because they require every miner and merchant and user to upgrade.

Lessons Learned