This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GPU mining on ec2 | |
nvidia driver needed | |
http://markus.com/install-theano-on-aws/ | |
Ubuntu AMI | |
http://thecloudmarket.com/image/ami-2cbf3e44--ubuntu-server-14-04-lts-hvm-cuda-6-5#/details | |
mining information | |
https://forum.ethereum.org/discussion/197/mining-faq-live-updates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sendEther(from, to, value) | |
function sendEther(fromAddr, toAddr, etherValue){ | |
eth.sendTransaction({from:fromAddr, to: toAddr, value:web3.toWei(etherValue), gas:1000000}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ geth console | |
// get all accounts balances | |
function getAllBalances(){ | |
for (index in eth.accounts){ | |
console.log(index + ' ' + eth.accounts[index] + ' ' + web3.fromWei(eth.getBalance(eth.accounts[index]))); | |
} | |
} | |
// to see all of accounts state | |
function getState(){ | |
console.log("About ether"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ build/bin/geth console | |
I0821 07:36:52.692526 52529 database.go:74] Alloted 16MB cache to /Users/tomoaki/Library/Ethereum/blockchain | |
I0821 07:36:52.697946 52529 database.go:74] Alloted 16MB cache to /Users/tomoaki/Library/Ethereum/state | |
I0821 07:36:52.704361 52529 database.go:74] Alloted 16MB cache to /Users/tomoaki/Library/Ethereum/extra | |
I0821 07:36:52.707193 52529 backend.go:291] Protocol Versions: [61 60], Network Id: 1 | |
I0821 07:36:52.708534 52529 backend.go:328] Blockchain DB Version: 3 | |
I0821 07:36:52.711741 52529 chain_manager.go:241] Last block (#80898) 2dc873f45d85d0cf14552e0f976071b34f817b3fc0ad80f8bc0061adbd673733 TD=107893388065006012 | |
I0821 07:36:52.804145 52529 cmd.go:124] Starting Geth/v1.0.2-a0303ff4/darwin/go1.4.2 | |
I0821 07:36:52.804450 52529 server.go:312] Starting Server | |
I0821 07:36:54.837336 52529 udp.go:207] Listening, enode://76aa6d0570fc7b698b57d2b25d43256d849501bbc72cdd817f89181140cde6081dd482106610f9ef6a4513b57092fcea7a5cf9d2c2cfbf14b3e18edf8addbbbe@49.135.72.235:3030 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// OSX enviroment | |
ssh-keygen -lf ~/.ssh/{private_key} | |
> ~/.ssh/config | |
Host github.com | |
User git | |
Hostname github.com | |
IdentityFile /Users/{username}/.ssh/{private} |
vim ~/.netrx
machine github.com
login TOMOAKI12345
password {oauth_token}
// npm private module installation with writing at package.json
npm install git+https://github.com/TOMOAKI12345/{private_repo} --save
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nonce": "0x0000000000000042", | |
"difficulty": "0x400000000", | |
"alloc": { | |
"3282791d6fd713f1e94f4bfd565eaa78b3a0599d": { | |
"balance": "1337000000000000000000" | |
}, | |
"17961d633bcf20a7b029a7d94b7df4da2ec5427f": { | |
"balance": "229427000000000000000" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// after geth1.x installed. | |
mkdir /tmp/eth/70 | |
geth console | |
personal.newAccount('password') | |
eth.accounts[0] | |
// you can check the eth.accounts[0] address, copy it and memo to somewhere | |
// control + c then escape from geth console. | |
// next make the private net genesisblock json file. | |
vim privatenet_genesis_block.json |