Skip to content

Instantly share code, notes, and snippets.

View alexxuyang's full-sized avatar
🌍

holaworld alexxuyang

🌍
View GitHub Profile
@alexxuyang
alexxuyang / useful linux commands.md
Created September 2, 2024 12:39 — forked from evgenyigumnov/useful linux commands.md
useful linux commands (cheat sheet)

Check memory and disk usage

free -m
df -h

Proccess management

# print all proccesses like tree
ps axf
# find PID by name
@alexxuyang
alexxuyang / boredape.json
Created January 9, 2023 15:11 — forked from jerryan999/boredape.json
How to decode smart contract transation
[{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"uint256","name":"maxNftSupply","type":"uint256"},{"internalType":"uint256","name":"saleStart","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"in
@alexxuyang
alexxuyang / openssl.sh
Created December 11, 2022 09:58 — forked from placek/openssl.sh
OpenSSL cheat sheet
# openssl version
openssl version
# openssl commands
openssl list-standard-commands
# ca - create certificate authorities
# dgst - compute hash functions
# enc - encrypt/decrypt using secret key algorithms (it is possible to generate using a password or directly a secret key stored in a file)
# genrsa - generate a pair of public/private key for the RSA algorithm
# password - generation of “hashed passwords”
@alexxuyang
alexxuyang / curve.py
Created September 22, 2022 15:07 — forked from onyb/curve.py
secp256k1 Python workshop code
from dataclasses import dataclass
from field import FieldElement, PrimeGaloisField
@dataclass
class EllipticCurve:
a: int
b: int