This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Mongoose = require('mongoose'); | |
const { Schema } = Mongoose; | |
const xSchema = new Schema({ | |
a: [String], | |
}); | |
const X = Mongoose.model('X', xSchema); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This is a script for binding vfio-pci drivers to | |
# video cards when there are multiple copies of the | |
# same card and ids cannot be used. | |
# install this to /sbin, and add this to modprobe.d: | |
# install vfio-pci /sbin/vfio-pci-override.sh | |
for i in /sys/devices/pci*/*/*/boot_vga; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
shopt -s nullglob | |
for d in /sys/kernel/iommu_groups/*/devices/*; do | |
n=${d#*/iommu_groups/*}; n=${n%%/*} | |
printf 'IOMMU Group %s ' "$n" | |
lspci -nns "${d##*/}" | |
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am hyperparabolic on github. | |
* I am hyperparabolic (https://keybase.io/hyperparabolic) on keybase. | |
* I have a public key ASDs4q24wX2ei3YtlYoYfLHXrSWVLbPgS1Bivh9Dng7JWAo | |
To claim this, I am signing this object: |