Skip to content

Instantly share code, notes, and snippets.

View shahbaazlokh's full-sized avatar
:octocat:
Focusing

shahbaaz lokhandwala shahbaazlokh

:octocat:
Focusing
View GitHub Profile
@shahbaazlokh
shahbaazlokh / vivado-on-m1-mac.md
Created February 15, 2023 07:15 — forked from sohnryang/vivado-on-m1-mac.md
Vivado on ARM64 Mac using Rosetta 2

Running Vivado on ARM64 Mac using Rosetta 2

macOS Ventura supports running x86-64 binaries on Linux VMs. However, even with Rosetta installing Vivado is not a simple one-click process. This guide covers some workarounds and tricks to get Vivado up and running on ARM64 Mac.

  1. Make sure you're running macOS Ventura or higher.
  2. Install UTM and create a Debian VM with Rosetta according to their guide.
    • Other distributions should also work, but commands will be different.
  3. Install x86-64 version of java and libtinfo. Vivado depends on them.
@shahbaazlokh
shahbaazlokh / block.py
Created March 18, 2020 15:08 — forked from ChristopherJohnston/block.py
Example Blockchain hash calculations using Python
from hashlib import sha256
import time
import struct
import binascii
import datetime
VERSION = 1
def hexify(value, type):
return binascii.hexlify(struct.Struct(type).pack(value))