Skip to content

Instantly share code, notes, and snippets.

🤗
1100011

Kosala Hemachandra kvhnuke

🤗
1100011
Block or report user

Report or block kvhnuke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ethvm-survey-winners.txt
Block #8157300
Block Hash: 0x036055f50d9f16bc05b42fc7e40045474905acd3cd6e14b758216a9d99faf2bd
Winner Position: 21
Winner Hash: 0x512e05b673a0374ff8fab36bd74d7396cf49d3da40aa3fccfa255b126bf80c72
Block #8157301
Block Hash: 0xc718c198848b8c00e5f3f08adbb59284800a9c4d89155dd56e90c3f1bfdf6c8b
Winner Position: 58
Winner Hash: 0x0e962ec866494cbc151c0eb2b8f2bbdd0b63267fbb6d05819e568f08fdbcd2f9
@kvhnuke
kvhnuke / valid-hashes-ethvm.txt
Created Jul 15, 2019
Valid Hashes for EthVM survey
View valid-hashes-ethvm.txt
0x09cc191505029d0168e0ef102eec9b4a981ba672d8ec27c04e7607f074328a9a
0xc7ba671b80b4e0397e9bfab29927f1dce07afd537b58916cfcd6bc1f9b14593d
0x811fe0dd1ecc421a7f08beace64dc7fd7ad64455f99d2805dc081778ce8aa515
0x62a4deec10f505cc300bc8c5412a7d9b0aff2d3909b0d9d57637e750262f869a
0x3eb056bdca37f554041f01004c32b486877f4b726c7b779d4b8ea98f92c13d7d
0xddcaa2d035898de479513c600fd4b166bfe95e2432e8951870b65e67f0bdde00
0xa147140e045c74056d2fba2878a4625925d1b625a82a66323ecde92815ff96aa
0xcfbbf3bfa25e8ea5df575abb58160eace7d4037e1a4f2988f04bf59042b72334
0x4de240f7dcff88fac7815109d28c49c125d58e15c7583e248796048f48ca39ac
0xc7824746250cb0a364ca2d45d4fec3d9bc9f609880b906d769bbefa6be6df4db
@kvhnuke
kvhnuke / survey-giveaway.md
Created Jul 3, 2019
EthVM Survey Giveaway
View survey-giveaway.md

Blockchain Explorer Survey

5 MEW Engraved Ledger Nano S and Stickers Giveaway

Rules

  • Survey must be thoughtful
  • Valid
  • No spamming
  • Must answer all questions, including open ended responses
@kvhnuke
kvhnuke / winners.txt
Created Feb 8, 2019
Survey Winners.txt
View winners.txt
Block #7192100
Block Hash: 0x065fb1460a039f57ccf267208fb508d4b2b72e5d14d10a62dbf372d54c5ebcb9
Winner Position: 69
Winner Hash: 0x562b48b63ed4234d7b07bc13d2a51a46f98b5951a13660bdd46a30c67bdfd195
Block #7192101
Block Hash: 0xf20c49fbbb01eed1e68905c2e3310d92ebbc44ecd2f863527955ab18aaf16903
Winner Position: 5
Winner Hash: 0xd896418c6dde31e3ed5ee745e41eae0d1b0d0c6481cd63dbace546ca2fc41b49
@kvhnuke
kvhnuke / valid-hashes.txt
Created Feb 8, 2019
Hashes of valid Entries
View valid-hashes.txt
0xe0887c43f16d76723d9d5b4051bf13d3ea9d1e45eaa5ba53cc2568b60dc939e9
0xc5265420b522169dd71b6d04f81922a9124b3f480c34912fd2462beb040bc20a
0xe67fb8440ae0ee983f5a7a646f594658130a86be76b2adc1ce26e7b93a1a5d19
0xc0c4bc28401d367daa34ae9458f29a912077e8b984b970d02b0b9a70a3cdcf60
0x397b0704e10cf65390fbc6d8983577f32b49d9dbd1c8a88617f0e330b62e21de
0xd896418c6dde31e3ed5ee745e41eae0d1b0d0c6481cd63dbace546ca2fc41b49
0xddbc35d5c57ba5a4f0804965f7515d8b910ac875a34964a8f7312d2cf58d4cbf
0xcfceb8546fa54f783a875081ead3e12657047b7748933e4c1dc84a48a68cc851
0x556b9be5ebd29f1a2a9e39cc6b8ad7d8ca3f7d920f40f5f0a8f50890c39e7923
0xf60463e10e3e091259ed91566cc294ba578072391b44ec29d05091be0169f774
View AbiTester.js
pragma solidity ^0.5.0;
contract ABITester {
uint200 public const_abc;
bool public const_nice;
bool public const_nice2;
bytes32 public const_time;
bool public const_nicer;
uint[] public ArrUint;
bool[] public ArrBool;
@kvhnuke
kvhnuke / 200mil-eth-genesis.js
Created Jan 31, 2019
Generate 200 million eth account genesis
View 200mil-eth-genesis.js
const fs = require("fs");
var JSONStream = require("JSONStream");
var LIMIT = 200000000;
var transformStream = JSONStream.stringifyObject(
'{"config":{"chainId":15,"homesteadBlock":0,"eip155Block":0,"eip158Block":0},"difficulty":"20","gasLimit":"2100000","alloc":{',
",",
"}}"
);
var outputStream = fs.createWriteStream("./sample-genesis.json");
transformStream.pipe(outputStream);
@kvhnuke
kvhnuke / genesis-generator.js
Last active Jan 31, 2019
Generate genesis block with n number of prefilled accounts
View genesis-generator.js
import bip39 from "bip39";
import hdWallet from "ethereumjs-wallet/hdkey";
import cluster from "cluster";
import fs from "fs";
const ETH_PATH = "m/44'/60'/0'/0";
const NUM_CPUS = 8;
const NUM_ACCOUNTS_PER_CORE = 200000;
const mnemonic =
"source pitch chronic mother need ghost unable asset supreme tragic else interest asset eagle update rule slim elder adapt next emerge trash doctor fun";
const seed = bip39.mnemonicToSeed(mnemonic);
@kvhnuke
kvhnuke / survey-giveaway.md
Last active Feb 1, 2019
Survey giveaway guide
View survey-giveaway.md

MyEtherWallet v5 Survey

5 MEW Engraved Ledger Nano S Giveaway

Rules

  • Survey must be thoughtful
  • Valid
  • No spamming
  • Must answer all questions, including open ended responses
@kvhnuke
kvhnuke / openssl.sh
Created Jan 24, 2019
OpenSSL ssl cert commands
View openssl.sh
# get sha-256 fingerprint of ssl cert
openssl s_client -showcerts -connect myetherwallet.com:443 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256 -inform pem
# export ssl cert of a website to pem
openssl s_client -showcerts -connect beta.myetherwallet.com:443 </dev/null 2>/dev/null|openssl x509 -outform PEM > mycertfile.pem
You can’t perform that action at this time.