Skip to content

Instantly share code, notes, and snippets.

View drandreaskrueger's full-sized avatar

drandreaskrueger

View GitHub Profile
@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 / 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:
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startMassive_ForGitPlayer()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startMassive()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir_concurrent
lockbydir.lockbydir_concurrent.startSpawner()
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbydir", shell=True)
import sys
sys.path.append(".")
import lockbydir.lockbydir
lockbydir.lockbydir.testDLock()
@drandreaskrueger
drandreaskrueger / gist:8e5c4f11874d8295d0f1
Created February 15, 2015 22:45
GIT player for: lockbyfile_concurrent
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.lockbyfile_concurrent
lockbyfile.lockbyfile_concurrent.startSpawner()
@drandreaskrueger
drandreaskrueger / gist:2c7c0c471a335c40c126
Created February 15, 2015 22:39
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.lockbyfile
lockbyfile.lockbyfile.testFLock()
@drandreaskrueger
drandreaskrueger / gist:08438b44cfbc031217f1
Created February 15, 2015 22:32
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile
lockbyfile.testFLock()
@drandreaskrueger
drandreaskrueger / gist:a22ae54e3e79828b0449
Created February 15, 2015 22:31
GIT player for: lockbyfile
import subprocess
subprocess.check_call("git clone https://github.com/drandreaskrueger/lockbyfile", shell=True)
import sys
sys.path.append(".")
import lockbyfile.testFLock
lockbyfile.testFLock()