Rules
- Survey must be thoughtful
- Valid
- No spamming
- Must answer all questions, including open ended responses
0x80aC8D1496b9c0F2cFdBe2a9AD827707AF7D3F52 |
let doAssignment = true; | |
$scope.kyberSwapRateDisplay(); | |
let bityOptions = ["ETH", "BTC", "REP"]; | |
let kyberOptions = $scope.availableTokens; | |
let isBity = (_coin) => { | |
return bityOptions.indexOf(_coin) > -1; | |
} | |
if (isFrom) { | |
$scope.availableToOptions = [] | |
if (isBity(coin)) { |
sudo docker stop $(sudo docker ps -a -q) | |
sudo docker rm $(sudo docker ps -a -q) | |
sudo bash /var/lib/cloud/instances/i-*/user-data.txt | |
#ssh -i [pem file location].pem ubuntu@[ip-address] 'bash -s' < ~/upgrade-docker.sh |
const Web3 = require('web3') | |
const Web3Method = require('web3-core-method') | |
let web3 = new Web3('https://api.myetherwallet.com/eth') | |
let reqM = { | |
send(tx, cb) { | |
console.log(tx) | |
} | |
} | |
// web3.eth.extend({ | |
// methods: [{ |
GNU nano 2.5.3 File: ipfs-publish.sh | |
#!/bin/bash | |
source ~/.profile | |
if [ "$#" -ne 1 ]; then | |
echo "usage:" | |
echo " ipfs-publish.sh <dir>" | |
echo " ipfs-publish.sh -- (read .tar.bzip2 archive from stdin)" | |
echo " example: tar -cjvf - dist | ./ipfs-publish.sh --" | |
exit 1 |
{ | |
"timestamp": "2018-12-12T02:39:51.982Z", | |
"main":{ | |
"customTokens": [{ | |
"name":"MyEtherWallet", | |
"symbol":"MEW", | |
"decimals": 18 | |
}], | |
"customNetworks":[{ | |
"name": "MyEtherWallet API", |
# 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 |
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); |
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); |