Skip to content

Instantly share code, notes, and snippets.

View AndreiHondrari's full-sized avatar
🌊
surfin' them life waves

Andrei-George Hondrari AndreiHondrari

🌊
surfin' them life waves
View GitHub Profile
@AndreiHondrari
AndreiHondrari / generate_django_secret_key.py
Last active January 4, 2021 14:42
Useful python scripts
import secrets
def generate_django_secret_key(length=50):
allowed_chars=(
'abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
)
return ''.join(secrets.choice(allowed_chars) for i in range(length))

QEMU essential commands

Observations

  • KVM acceleration is for Linux machines
  • HVF acceleration is for MacOS Hypervisor.Framework

qemu-img options explained

  • -f specify disk format