Skip to content

Instantly share code, notes, and snippets.

View juanmanavella's full-sized avatar
🎯
Focusing

Juan Manavella juanmanavella

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am juanmanavella on github.
  • I am juanmanavella (https://keybase.io/juanmanavella) on keybase.
  • I have a public key ASDVrcn-dCzMt0dLJFWI4EcoreTgfDJo9XqFX8rMmklp8Qo

To claim this, I am signing this object:

@juanmanavella
juanmanavella / hosts
Created April 27, 2020 20:54 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@juanmanavella
juanmanavella / keys
Created May 11, 2018 13:14 — forked from miguelmota/ethereum_keys.sh
Generate Ethereum Private key, Public key, and Address using bash and openssl
# Generate the private and public keys
openssl ecparam -name secp256k1 -genkey -noout | openssl ec -text -noout > key
# Extract the public key and remove the EC prefix 0x04
cat key | grep pub -A 5 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^04//' > pub
# Extract the private key and remove the leading zero byte
cat key | grep priv -A 3 | tail -n +2 | tr -d '\n[:space:]:' | sed 's/^00//' > priv
# Generate the hash and take the address part
const util = require('ethereumjs-util')
const Wallet = require('ethereumjs-wallet')
const basePrivateKey = '1cd3b30424316919712c483929787eefa0d724a78274a506530dbb26916b1'
const charsMissing = 64 - basePrivateKey.length
const targetPublicAddress = '0xe8Ca70C909905Ebbbe6a49c34797beF31d895241'
console.log(" \n" +
"searching for address : " + targetPublicAddress + " \n" +
"base private key : " + basePrivateKey + " \n" +
@juanmanavella
juanmanavella / tmux-cheatsheet.markdown
Last active August 25, 2017 12:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname