Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
from secrets import token_bytes
from coincurve import PublicKey
from sha3 import keccak_256
def generate_address():
private_key = keccak_256(token_bytes(32)).digest()
public_key = PublicKey.from_valid_secret(private_key).format(compressed=False)[1:]
addr = keccak_256(public_key).digest()[-20:]
@ArgonQQ
ArgonQQ / KubernetesCheatsheet.md
Last active October 22, 2022 03:30
🐳 Kubernetes Cheatsheet 🐳

General

Namespace

For every command you enter with kubectl (if you have enough permissions) you can alternatively specify the namespace --namespace=default

Default Service/ Namespace Syntax

<service>.<namespace>.svc.cluster.local

Get Node ips & names

kubectl get nodes -o json | grep "\"address\": \"" | uniq | sort | awk '{print $2}'

Scale Deployments