Skip to content

Instantly share code, notes, and snippets.

@mattsizzle
mattsizzle / iommu-info.sh
Created October 5, 2021 21:06
IOMMU Support and Grouping Script
#!/bin/bash
shopt -s nullglob
echo -e "Checking for kernel support for IOMMU"
dmesg | grep -e DMAR -e IOMMU
dmesg | grep 'remapping'
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`; do
echo "IOMMU Group ${g##*/}:"
@mattsizzle
mattsizzle / powerline_configuration.md
Last active February 2, 2023 11:49
Powerline Configuration (Debian 11 optionally with GIT support)

Powerline Configuration (Debian/Ubuntu/PopOS optionally with GIT support)

Powerline

Powerline is a statusline plugin for vim, and provides status lines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3, and Qtile.

In other words, it is a very powerful and very cool piece of software, and I use it in some capacity on all my servers. It can be installed a few ways with binaries available in most distro's main repositories and many derivatives available. I prefer the Python userspace installation method outlined below as it lends itself to portability and works better with my virtualization practices.

Notes

@mattsizzle
mattsizzle / python-bootstrap-guide.md
Last active March 6, 2020 21:39
How to Bootstrap Modern Python Application

Bootstrap Modern Python Application

Install Dependencies

The following guides will help you get Python and Pip

Install Python

This is a great overview of Pipenv and Virtual Environments

@Geoyi
Geoyi / install virtualenv ubuntu 16.04.md
Created September 16, 2017 12:19 — forked from frfahim/install virtualenv ubuntu 16.04.md
How to install virtual environment on ubuntu 16.04

How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv