Skip to content

Instantly share code, notes, and snippets.

hyoretsu /
Created Jun 5, 2022
Various useful Python functions
import inspect
def get_var_name(var):
callers_local_vars = inspect.currentframe().f_back.f_locals.items()
return [var_name for var_name, var_val in callers_local_vars if var_val is var]
hyoretsu / https_in_wsl.MD
Last active May 30, 2021
How to run HTTPS in development with WSL2
View https_in_wsl.MD
  1. Download OpenSSL for Windows from
  2. Add whichever folder you selected for binaries to your PATH
  3. Create a file named example.conf and paste this
default_bits = 2048
prompt = no
default_md = sha256
x509_extensions = v3_req
distinguished_name = dn