Skip to content

Instantly share code, notes, and snippets.

View rdnetto's full-sized avatar

Renee D'Netto rdnetto

  • Sydney, Australia
View GitHub Profile
@rdnetto
rdnetto / Writeup.md
Last active April 30, 2018 23:37
Multiseat PCIe Passthrough Writeup

A few people expressed interest in finding out how this went, so I thought I'd do a writeup of my experiences getting PCIe passthrough working with multiseat.

One of the more interesting things to note is that hot-plugging aside, it works fine with Vega, despite the card not being shown as resettable by the Arch wiki script.

I've mostly followed the Arch wiki, with additional sources linked throughout.

Why would you want to do this?

Multiseat enables multiple people to use the same computer simultaneously. This can reduce setup costs (you only need one motherboard, CPU, etc.) and improve resource utilization (if one seat is idle, the other can make full use of the CPU + memory). The only parts needed per seat are the screen, peripherals, graphics card and a USB soundcard (opt.)

PCIe passthrough allows you to connect on

@rdnetto
rdnetto / ProgressUtils.hs
Created December 17, 2017 22:23
Progress bar example using Conduit
module ProgressUtils where
import BasicPrelude
import Conduit (Conduit, mapMC, execStateC)
import qualified Control.Monad.State.Class as S
import Data.Fixed (divMod')
import qualified Data.Text as T
import System.Clock
import System.IO (hFlush, stdout)
import Text.Printf (printf)
@rdnetto
rdnetto / build.log
Created November 22, 2016 08:34
Fzf build
 * Package: app-shells/fzf-0.15.8
 * Repository: go-overlay
 * Maintainer: toffanin.mauro@gmail.com
 * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU
 * FEATURES: compressdebug preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking fzf-0.15.8.tar.gz to /var/tmp/portage/app-shells/fzf-0.15.8/work
>>> Unpacking github.com-junegunn-go-isatty-66b8e73.tar.gz to /var/tmp/portage/app-shells/fzf-0.15.8/work
>>> Unpacking github.com-junegunn-go-runewidth-63c378b.tar.gz to /var/tmp/portage/app-shells/fzf-0.15.8/work
>>> Unpacking github.com-junegunn-go-shellwords-35d512a.tar.gz to /var/tmp/portage/app-shells/fzf-0.15.8/work
@rdnetto
rdnetto / sync-entropy-files.sh
Last active October 10, 2015 23:15
Script for updating Portage files in Sabayon
#!/bin/bash
# sync-entropy-files.sh
# Copyright Reuben D'Netto 2014. Published under Apache 2.0 license.
# This script updates the portage files used in Sabayon so that entropy and portage don't step on each other's feet
BUILD_DIR="/var/cache/sabayon-build"
ARCH=$(uname -m)
[[ "$ARCH" == "i686" || "$ARCH" == "x86_64" ]] && ARCH="intel"