Skip to content

Instantly share code, notes, and snippets.

@reisenmachtfreude
reisenmachtfreude / debian11_install_geth.sh
Last active January 12, 2025 00:57
Install geth on Debian 11 bullseye using ubuntu ppa
su # Run the following commands as root
echo "deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main
deb-src http://ppa.launchpad.net/ethereum/ethereum/ubuntu bionic main" > /etc/apt/sources.list.d/ethereum-bioinc.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9
apt-get update
apt-get install ethereum
# Taken from https://linuxconfig.org/ethereum-mining-on-ubuntu-18-04-and-debian
# GETH Manual does not explicitly mention Debian and Ubuntu method is failing https://geth.ethereum.org/docs/install-and-build/installing-geth
@mykiimike
mykiimike / gist:eae214a32f81c144950e
Created June 10, 2015 14:33
Nodejs crypto good practice AES-CBC + SHA256 + HMAC
// var cryptoKey = raw SHA256 Hash
function decypherPayload(payload) {
/* inputs */
var t = payload.split(",");
var C = t[0],
IV = t[1],
Hm = t[2];