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:

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
    

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)
@johnzweng
johnzweng / require_password_on_next_unlock.sh
Last active December 7, 2022 04:07
Require password for next unlock (disable touch-id for next unlock) – macOS
#!/bin/bash
# require_password_on_next_unlock.sh:
# -----------------------------------
# Johannes Zweng, 8.11.2020
#
# Disable and enable global touch id unlock on macOS.
#
# After re-enabling unlock by touch-id, macOS will ask for
# password on the first unlock event (which is exactly what we want). :-)
@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! :-)