Skip to content

Instantly share code, notes, and snippets.

View drandreaskrueger's full-sized avatar

drandreaskrueger

View GitHub Profile
@drandreaskrueger
drandreaskrueger / gooeyCheckboxesProblem.py
Created January 29, 2016 01:56
Gooey: Some checkboxes do not react to user input at all
'''
gooeyCheckboxesProblem.py
@summary Some checkboxes do not react to user input at all.
@author https://github.com/drandreaskrueger
@bitcoin 1GdYteTSMUgiKdm1M4Yim7YdLoAoeME8kj
@since Created on 28 Jan 2016
@abstract This shows the combinations that are ill:
@drandreaskrueger
drandreaskrueger / Scanning Live Ethereum Contracts for the "Unchecked-Send" Bug - suggestion for listing 3
Created June 18, 2016 03:49
Scanning Live Ethereum Contracts for the "Unchecked-Send" Bug - suggestion for listing 3
/*** Listing 3 - would this be an improvement? ***/
/*** ***/
/*** inspired by excellent article ***/
/*** http://hackingdistributed.com/2016/06/16/scanning-live-ethereum-contracts-for-bugs ***/
if (gameHasEnded && !( prizePaidOutToWinner ) ) {
if (winner.send(1000))
prizePaidOutToWinner = True;
}
@drandreaskrueger
drandreaskrueger / ethereum_debian8.txt
Last active April 5, 2022 07:00
Debian 8 - ethereum and eth-dev-tools - installation manual
#
# Ethereum and eth-dev-tools: Debian 8
#
# rev 9
#
# started midsummer 2016-06-21 Andreas Krueger
# https://github.com/drandreaskrueger
# https://twitter.com/drandreaskruger
# please contact me with improvements, thanks.
#
@drandreaskrueger
drandreaskrueger / freemind-install.sh
Last active November 13, 2023 04:51
installs freemind on Debian stretch(testing) - almost works, some issues, have asked in freemind sourceforge forum - https://sourceforge.net/p/freemind/discussion/22102/thread/8ee5e81f/
# distro can be one of experimental, unstable, testing or ubuntu.
DISTRO=testing
echo
echo install freemind
echo script by Andreas Krueger 2017, version v01
echo
echo must be run as root:
echo
@drandreaskrueger
drandreaskrueger / glances
Created January 8, 2018 16:38
glances init.d script - does not work ... yet
#! /bin/sh
### BEGIN INIT INFO
# Provides: glances
# chkconfig: 2345 80 80
# Short-Description: Start and stop the Glances server
### END INIT INFO
##############
######### from https://github.com/moumoul/scripting/blob/master/initd/glances
@drandreaskrueger
drandreaskrueger / parity-how-to-sync_with-help-of-cloudmachine.txt.md
Last active April 23, 2018 23:40
parity-how-to-sync? --> cloudmachine sync, chain zip, download, perhaps publish at mega.nz
@drandreaskrueger
drandreaskrueger / deployContract_example_web3.py
Last active October 21, 2021 08:28
the default web3.py example how to deploy contracts does not work on Quorum (Geth v1.7.2 fork)
# taken from
# http://web3py.readthedocs.io/en/stable/contracts.html#contract-deployment-example
#
# then repaired:
# see issue 808 https://github.com/ethereum/web3.py/issues/808
# and slightly extended
#
# purpose:
# see issue 898 https://github.com/ethereum/web3.py/issues/898
@drandreaskrueger
drandreaskrueger / deployContract_example_web3_bugfix-for-quorum.py
Created June 18, 2018 08:40
the default web3.py example to deploy contracts, bugfixed for Quorum 2.0.2 (Geth v1.7.2 fork)
# taken from
# http://web3py.readthedocs.io/en/stable/contracts.html#contract-deployment-example
#
# then repaired:
# see issue 808 https://github.com/ethereum/web3.py/issues/808
# and extended
#
# and quorum-bugfixed, see
# https://github.com/ethereum/web3.py/issues/898#issuecomment-396701172
@drandreaskrueger
drandreaskrueger / requirements_unversioned.txt
Created June 18, 2018 15:35
same dependencies as your requirements.txt but without version numbers
asn1crypto
attrdict
bcrypt
certifi
cffi
chardet
colorlog
cryptography
cytoolz
eth-abi
@drandreaskrueger
drandreaskrueger / energywebfoundation_ew-origin_allContracts-b724754.sol
Created September 11, 2018 16:18
ordered concatenation of all 20 solidity contracts at https://github.com/energywebfoundation/ew-origin/tree/master/contracts on 2018 September 11th (Latest commit b724754 on Jul 31)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// ordered concatenation of all 20 solidity contracts at
// https://github.com/energywebfoundation/ew-origin/tree/master/contracts
// on 2018 September 11th (Latest commit b724754 on Jul 31)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////