Skip to content

Instantly share code, notes, and snippets.

@smartperson
smartperson / L1Techs-X399M-Taichi-IOMMU-Groups.sh
Created Jul 20, 2018
Partial X339M Taichi IOMMU grouping firmware "2.35 Beta"
View L1Techs-X399M-Taichi-IOMMU-Groups.sh
# Partial list based on what I can see in Wendell's video about the ASRock X399M Taichi here: https://youtu.be/JvV3xf2oyMo?t=9m59s
# Wendell thinks he used the beta firmware version 2.35 from ASRock. Latest public BIOS is here: https://www.asrock.com/mb/AMD/X399M%20Taichi/index.asp#BIOS
IOMMU Group 10 00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1466]
IOMMU Group 10 00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1467]
IOMMU Group 10 00:19.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1460]
IOMMU Group 10 00:19.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1461]
IOMMU Group 10 00:19.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1462]
IOMMU Group 10 00:19.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1463]
IOMMU Group 10 00:19.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1464]
IOMMU Group 10 00:19.5 Host bridge [0600]: Advanced Micro
@smartperson
smartperson / iommu_groups
Created Feb 21, 2018
My computer's VFIO setup, successfully doing GPU passthrough and generally excellent performance
View iommu_groups
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 1 00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
IOMMU Group 2 00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 3 00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 4 00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1453]
IOMMU Group 5 00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 6 00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 7 00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
IOMMU Group 8 00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 9 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:1454]
@smartperson
smartperson / virt_machine.xml
Created Feb 21, 2018
My libvirtd xml setup for my computer
View virt_machine.xml
<domain type='kvm'>
<name>generic-2</name>
<uuid>f7050b8f-4e77-4eb4-b1bf-f00aaefa6726</uuid>
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>
<memoryBacking>
<hugepages/>
</memoryBacking>
<vcpu placement='static'>8</vcpu>
<os>
View weird email.md

Billing address

Smart Ass

666

Atlanta, GA 30331

Additional information

@smartperson
smartperson / sensible_character_map.md
Last active Sep 3, 2017
LCD character codes read from Logitech Z680 control pod
View sensible_character_map.md
Letter Code (hex) Code (binary stripped) Code (rev. binary) Code (rev. hex)
D 20 20 0010 0010 0100 0100 44
E A0 20 1010 0010 0100 0101 45
I 90 20 1001 0010 0100 1001 49
N 70 20 0111 0010 0100 1110 4E
O F0 20 1111 0010 0100 1111 4F
a 80 60 1000 0110 0110 0001 61
c C0 60 1100 0110 0110 0011 63
e A0 60 1010 0110 0110 0101 65
@smartperson
smartperson / meter.ps
Created Aug 28, 2017
postscript file to generate custom labels for analog meters
View meter.ps
%!Postscript File
% This file generates meter faces.
% Copyright (c) 2004, Jennifer Elaan
% Circuit Corner 2004.
% Free for any use so long as this copyright notice
% remains intact.
% ------------------------------------------------------
% These are unit definitions. They define conversion factors for
% common units like mils, inches, millimeters, etc.
@smartperson
smartperson / ttymbot.sh
Created Jun 15, 2017
/usr/local/scripts/ttymbot.sh
View ttymbot.sh
#!
ln -s /dev/tty.wch\ ch341\ USB\=\>RS232\ 1d10 /dev/tty.mbot
@smartperson
smartperson / com.varunmehta.ttymbot.plist
Created Jun 15, 2017
/Library/LaunchDaemons/com.varunmehta.ttymbot.plist
View com.varunmehta.ttymbot.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST
1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.varunmehta.ttymbot</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/scripts/ttymbot.sh</string>
View mbot_serial.notes
tools.avrdude.upload.pattern="{cmd.path}" "-C{config.path}" {upload.verbose} -p{build.mcu} -c{upload.protocol} "-P{serial.port}" -b{upload.speed} -D "-Uflash:w:{build.path}/{build.project_name}.hex:i"
View Gemfile
source 'https://rubygems.org'
ruby '1.9.3'
gem 'rails', '3.2.13'
#
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'pg'
gem 'koala'