Skip to content

Instantly share code, notes, and snippets.

@nathandao
nathandao / README.md
Created August 30, 2020 05:41 — forked from CRTified/README.md
VFIO Passthrough on NixOS

VFIO Setup on NixOS

Disclaimer: Nobody else tested my setup so far, so this is a "works on my machine" scenario. I am not responsible for anything you break on your machine (although I'd not expect much harm).

Hardware

My system has the following hardware:

  • Board: Asus ROG Strix Z270G
@nathandao
nathandao / .Xmodmap
Last active September 22, 2019 20:57
Linux keyboard mapping & configurations for macbook pro
keycode 66 =
keycode 66 = Control_L
keycode 133 =
keycode 133 = Meta_L
keycode 64 = Alt_L
clear mod1
clear mod4

Keybase proof

I hereby claim:

  • I am nathandao on github.
  • I am ndao (https://keybase.io/ndao) on keybase.
  • I have a public key whose fingerprint is EB79 2C2F 842D EA36 CB7B F014 C509 2C76 54DF D331

To claim this, I am signing this object:

@nathandao
nathandao / ruby-chest-box
Created October 16, 2015 18:49
Ruby installation weirdness commands
# Add rbenv init to your shell to enable shims and autocompletion.
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
# if installing eventmachine complains fatal error: 'openssl/ssl.h' file not found on OSX
gem install eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include