git diff --no-prefix > [path file name]
patch -p0 < [path file name]
var Redis = require('redis-stream') | |
, client = new Redis(6379, 'localhost', process.argv[2] || 0) | |
, stream = client.stream() | |
var keys = client.stream('keys') | |
process.stdin | |
.pipe(Redis.es.split()) | |
.pipe(keys) | |
.pipe(Redis.es.mapSync(function (key) { |
const { Transaction } = require('bitcore-lib') | |
const { decrypt } = require('bip38') | |
const encryptedKey = '<private key beginning with 6>' | |
const password = '<private key password>' | |
const privateKey = decrypt(encryptedKey, password).privateKey | |
// Check UTXO info at https://insight.bitpay.com/api/addr/<origin address>/utxo | |
const utxo = { |
var bitcore = require("bitcore-lib"); | |
var Buffer = require("buffer").Buffer; | |
var value = new Buffer.from("test", "utf8"); | |
var hash = bitcore.crypto.Hash.sha256(value); | |
// Compressed Key (nu skool) | |
var bn = bitcore.crypto.BN.fromBuffer(hash); | |
var privateKey = new bitcore.PrivateKey(bn); |
#!/bin/bash | |
# Description: | |
# Delete all `greenkeeper/*` branches of your remote. | |
# Instructions: | |
# Run the script with the `--help` flag. | |
ORIGIN=origin | |
DRY_RUN=0 | |
THIS=`basename "$0"` |
#!/usr/bin/env node | |
// Reads JSON from stdin and writes equivalent | |
// nicely-formatted JSON to stdout. | |
var stdin = process.stdin, | |
stdout = process.stdout, | |
inputChunks = []; | |
stdin.resume(); |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
I recently stumbled upon Falsehoods programmers believe about time zones, which got a good laugh out of me. It reminded me of other great lists of falsehoods, such as about names or time, and made me look for an equivalent for Ethereum. Having found none, here is my humble contribution to this set.
estimateGas
will return the gas required by my transactionCalling estimateGas
will return the gas that your transaction would require if it were mined now. The current state of the chain may be very different to the state in which your tx will get mined. So when your tx i
#!/usr/bin/env node | |
var args = process.argv.slice(2); | |
var input = args[0]; | |
var isTTY = process.stdin.isTTY; | |
var stdin = process.stdin; | |
var stdout = process.stdout; | |
// If no STDIN and no arguments, display usage message |