Skip to content

Instantly share code, notes, and snippets.

View JorgeFrancoIbanez's full-sized avatar

Jorge Franco Ibañez JorgeFrancoIbanez

  • Ubisoft
  • Montreal
View GitHub Profile
@JorgeFrancoIbanez
JorgeFrancoIbanez / fedora_install_python3.md
Created December 7, 2022 15:39 — forked from zobayer1/fedora_install_python3.md
Install Python 3.6, 3.7, 3.8 in your Fedora system

Python 3.9 comes as a default with Fedora 34. However, sometimes you may wish to install older versions for development and test purposes. Apart from groupinstall command, these instructions work for CentOS and REHL systems as well.

Prerequisites

Install python development dependencies.

sudo dnf groupinstall "Development Tools"
sudo dnf install python3-devel openssl-devel zlib-devel bzip2-devel sqlite-devel libffi-devel

Note: You will need to rebuild and reinstall if you install new source or development libraries for python. Do not create or modify symlinks for python, python3, etc, as that may and will break many dependent libraries in your system.

@JorgeFrancoIbanez
JorgeFrancoIbanez / lsiommu
Created December 8, 2020 18:25 — forked from flungo/lsiommu
List the devices and their IOMMU groups.
#!/bin/bash
for d in $(find /sys/kernel/iommu_groups/ -type l | sort -n -k5 -t/); do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done;