Skip to content

Instantly share code, notes, and snippets.

View drandreaskrueger's full-sized avatar

drandreaskrueger

View GitHub Profile
@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 / 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 / plutoalert_StarTrek.py
Last active March 10, 2022 01:23
clone and init my plutoalert github repo, then run the example script, showing all Star Trek episodes in the plutotv EPG
#!/bin/python3.7
# this gist
# https://gist.github.com/drandreaskrueger/94d3b92d57976da77ae2753b45314aeb
# is intended to run at PythonAnywhere
# https://www.pythonanywhere.com/gists/94d3b92d57976da77ae2753b45314aeb/plutoalert_StarTrek.py/python3/
#
# but see the 'sorry, EMPTY RESULT' info in
# README.md --> Geoblocking --> Python online execution environments: pythonanywhere
@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 / compose_sign_and_send_extrinsic(substrate)
Last active June 25, 2021 00:00
compose_sign_and_send_extrinsic(substrate) - both results (bottom) done with rc3 - added python @quickstart - cleaned up, new scalecodec version
#!/usr/bin/env python3
"""
@summary: Send extrinsic - how to? Example doesn't work yet for substrate & node-template.
For reporting in https://github.com/polkascan/py-substrate-interface/issues/14
Output RESULTS = see bottom of this file
@version: v05 (25/June/2020)
@since: 10/June/2020
@author: https://github.com/drandreaskrueger
@see: https://github.com/drandreaskrueger/chainhammer-substrate for updates
@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)
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@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 / 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 / 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 / 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