Skip to content

Instantly share code, notes, and snippets.

View franferrax's full-sized avatar

Francisco Ferrari Bihurriet franferrax

View GitHub Profile
@franferrax
franferrax / README.md
Last active June 11, 2025 13:48
Passthrough the host BIOS DMI info to a QEMU VM

Passthrough the host BIOS DMI info to a QEMU VM

Step-by-step guide

  1. In the host (real hardware), obtain the data to pass through:
    function DMI {  # Get DMI value and XML-escape it
        sudo sed \
            's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g; s/"/\&quot;/g; s/'"'"'/\&#39;/g' \

"/sys/class/dmi/id/$1"

Keybase proof

I hereby claim:

  • I am franferrax on github.
  • I am franfb (https://keybase.io/franfb) on keybase.
  • I have a public key ASC3UDaSl82QPdsh9rvOZiVzZ1cRNbZ21KYnlpawIqdixwo

To claim this, I am signing this object:

@franferrax
franferrax / README.md
Last active October 17, 2024 11:05
Configure Tools: vim, gdb

Usage

GDB

g="https://gist.githubusercontent.com/franferrax/806bc27e827ee2fda758b1d279e84c35"
bash <(curl -s "$g/raw/setup_gdb.sh?$(date +%s)") && unset g

VIM

@franferrax
franferrax / build_pow_wheel.bat
Last active October 25, 2021 19:09
Create a POW (Python OpenSSL Wrappers) Wheel for Python 2.7.12, linking against OpenSSL 1.0.1h
@echo off
REM Check permissions
net session >nul 2>&1 || (
echo Aborting: this script must be run elevated!
exit /b 1
)
pushd "%UserProfile%\Downloads"