Skip to content

Instantly share code, notes, and snippets.

View learner-long-life's full-sized avatar

Paul Pham learner-long-life

View GitHub Profile
0x41a3c3ee13f743d912762e2eb68474c45f782f86
@learner-long-life
learner-long-life / HowToUploadInitCrowdfund.md
Created August 7, 2017 06:35
How to Upload and Initialize an Ethereum Crowdfund

How to Upload and Initialize an Ethereum Crowdfund

This writeup will tell you how to deploy (upload) a crowdfunding contract, first on the Rinkeby testnet, and then when you have confidence that it will behave correctly, on the Etherem mainnet.

We've assumed that you've gone through a previous walkthrough, where you're running a Rinkeby node locally and have 3 ETH to play with.

0xe800ba1d8da6345ba16f512681c75e736f77f9bd
@learner-long-life
learner-long-life / ParityDockerGCP.md
Last active August 2, 2017 04:34
Parity in Docker on GCP

sudo docker run -d --entrypoint /parity/parity -p 8545:8545 -p 8080:8080 -p 8180:8180 -v "/opt/blockchain/parity-kovan:/root/.local" "ethcore/parity:master" --chain=kovan --no-warp --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors "*" --jsonrpc-apis web3,eth,net,parity,parity_accounts,traces,rpc,parity_set,personal --ui-interface all

sudo docker run -d --entrypoint /parity/parity -p 8545:8545 -p 8080:8080 -p 8180:8180 -v "/opt/blockchain/parity-kovan:/root/.local" "ethcore/parity:master" --chain=kovan --no-warp --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-cors "*" --jsonrpc-apis "web3,eth,net,parity,parity_accounts,traces,rpc,parity_set,personal" --ui-interface all ui

@learner-long-life
learner-long-life / EthereumDev.md
Created July 31, 2017 02:18
How to Set up an Ethereum Dev Environment

How to Set up an Ethereum Dev Environment

So you want to be an Ethereum developer! Congrats, much treasure awaits you. Developing Ethereum dapps benefits from having a well-crafted development environment. This can often be daunting to beginners, so I'm giving you my favorite dev environment to help get you started.

Once your code fortress is constructed, you'll be able to

  • Compile smart contracts written in Solidity
0x986c946ac5024598a5df8ec3021c9edd505861b5
@learner-long-life
learner-long-life / gist:909824e7866c158f053d54b16b1750de
Created May 31, 2017 01:30
Partitions vs. Topics for Sharding
Changing topics:
I’m considering using 64 different topics, listings0 through listings63, instead of 64 partitions. This would allow us to parallelize multiple ML processors, as consumer groups for the same shard.
We can have the KS apps actually running on the Solr machines themselves, along with the reducer for a particular shard.
hyungoo [5:50 PM]
@cryptogoth would we need more than 64-way parallelism?
[5:50]
also, if we want to parallelize, we can keep it a single topic and have 64*n partitions
@learner-long-life
learner-long-life / HowToCrowdFund.md
Created May 23, 2017 18:02
How to Participate in a Crowdfunding Contract
@learner-long-life
learner-long-life / Rinkeby.md
Last active August 30, 2022 22:32
How to get on Rinkeby Testnet in less than 10 minutes

How to get on Rinkeby Testnet in less than 10 minutes

Following instructions from the excellent https://www.rinkeby.io/

Synchronizing a Full Node

A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,

0xb2e9fe08ca9a0323103883fe12c9609ed380f475