Skip to content

Instantly share code, notes, and snippets.

@prokmiha
prokmiha / Balance_check.py
Created May 22, 2023 17:25
Program for wallet seed phrase brute-forcing.
# The code uses API providers from different networks to check the balance of wallets
# whose mnemonic phrases have been determined to be valid. The results are written to a separate file.
from tqdm import tqdm
from web3 import Web3
from eth_account import Account
# Enable unaudited HD wallet features
Account.enable_unaudited_hdwallet_features()
@kconner
kconner / macOS Internals.md
Last active May 11, 2025 05:13
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active May 12, 2025 13:07
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@martinthenext
martinthenext / isin_from_cusip.py
Created April 28, 2016 14:58
Get ISIN from CUSIP in Python
def get_isin_from_cusip(cusip_str, country_code):
"""
>>> get_isin_from_cusip('037833100', 'US')
'US0378331005'
"""
isin_to_digest = country_code + cusip_str.upper()
get_numerical_code = lambda c: str(ord(c) - 55)
encode_letters = lambda c: c if c.isdigit() else get_numerical_code(c)
to_digest = ''.join(map(encode_letters, isin_to_digest))