Skip to content

Instantly share code, notes, and snippets.

View bsodmike's full-sized avatar

Michael de Silva bsodmike

View GitHub Profile
@bsodmike
bsodmike / iommu
Last active December 15, 2017 13:06
Asus ROG Strix-E X299 (UEFI 1004) + i9 7920X // IOMMU Groups, with EVGA GTX1070 SC Black installed in PCIEX16/X8_2
IOMMU Group * 00:00.0 Host bridge [0600]: Intel Corporation Sky Lake-E DMI3 Registers [8086:2020] (rev 04)
00:04.0 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.1 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.2 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.3 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.4 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.5 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.6 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:04.7 System peripheral [0880]: Intel Corporation Sky Lake-E CBDMA Registers [8086:2021] (rev 04)
00:05.0 System peripheral [0880]: Intel Corporation Sky Lake-E MM/Vt-d Configuration Registers [8086:2024] (rev 04)
@bsodmike
bsodmike / sony_gear.md
Created November 23, 2017 17:40
Matt's Sony Gear - B&H Pricing

Essential Gear

  • Sony Alpha a7R III Mirrorless Digital Camera // $3,200/-
  • Sony 70-200mm f/2.8 G SSM II Lens // $2,998/-
  • Sony FE 24-70mm f/2.8 GM Lens // $2,198/-
  • Sony FE 12-24mm f/4 G Lens // $1,698/-

For Portraits

  • Sony FE 90mm f/2.8 Macro G OSS Lens // $998/-
  • Sony FE 85mm f/1.4 GM Lens // $1,798/-
@bsodmike
bsodmike / iommu
Created November 11, 2017 02:04
Asus Zenith Extreme X399 (UEFI 0701) w/ "Enumerate all IOMMU in IVRs" Enabled // IOMMU Groups, with EVGA GTX1080Ti FTW3 installed in PCIEX16_3 & ROG (Aquantia) 10G NIC in PCIEX8_2, with Samsung 960 PRO 512GB M.2 NVMe SSD in ROG DIMM.2 (R-Slot) Raw
-+-[0000:40]-+-00.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex
| +-00.2 Advanced Micro Devices, Inc. [AMD] Device 1451
| +-01.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
| +-01.1-[41]----00.0 Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
| +-01.3-[42]----00.0 Aquantia Corp. AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
| +-02.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
| +-03.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
| +-04.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
| +-07.0 Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge
| +-07.1-[43]--+-00.0 Advanced Micro Devices, Inc. [AMD] Device 145a
@bsodmike
bsodmike / iommu
Created November 11, 2017 01:47
Asus Zenith Extreme X399 (UEFI 0701) IOMMU Groups, with EVGA GTX1080Ti FTW3 installed in PCIEX16_3 & ROG (Aquantia) 10G NIC in PCIEX8_2, with Samsung 960 PRO 512GB M.2 NVMe SSD in ROG DIMM.2 (R-Slot) Raw
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 10 00:19.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0 [1022:1460]
IOMMU Group 10 00:19.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1 [1022:1461]
IOMMU Group 10 00:19.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2 [1022:1462]
IOMMU Group 10 00:19.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3 [1022:1463]
IOMMU Group 10 00:19.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4 [1022:1464]
IOMMU Group 10 00:19.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fab
@bsodmike
bsodmike / iommu
Last active November 11, 2017 01:42
Asus Zenith Extreme X399 (UEFI 0401) IOMMU Groups, with EVGA GTX1080Ti FTW3 installed in PCIEX16_3 & ROG (Aquantia) 10G NIC in PCIEX8_2 Raw
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe Dummy Host Bridge [1022:1452]
IOMMU Group 10 00:19.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0 [1022:1460]
IOMMU Group 10 00:19.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1 [1022:1461]
IOMMU Group 10 00:19.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2 [1022:1462]
IOMMU Group 10 00:19.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3 [1022:1463]
IOMMU Group 10 00:19.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4 [1022:1464]
IOMMU Group 10 00:19.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fab
@bsodmike
bsodmike / X399-DDR4-RAM-Speed-Testing.md
Last active October 12, 2017 03:05
DDR4 Testing on X399 with RAMspeed/SMP (Linux) v3.5.0

DDR4 Testing on X399 with RAMspeed/SMP (Linux) v3.5.0

Crucial Ballistix 16GB (2x8GB)

Crucial CRBLE2K8G4D2 16GB Ballistix Elite Series DDR4 PC4-21300 UDIMM Memory Module Kit (2 x 8GB)

Corsair Dominator Platinum 16GB (2x8GB)

2x Corsair Dominator Platinum Series 16GB (2 x 8GB) DDR4 DRAM 3200MHz (PC4-25600) C16 Memory Kit CMD16GX4M2B3200C16

@bsodmike
bsodmike / iommu
Created September 29, 2017 16:59
Gigabyte X399 IOMMU Groups, with GTX1070 installed in PCIEX_8_1 (Second slot)
IOMMU Group 0 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Device [1022:1452]
IOMMU Group 10 01:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43ba] (rev 02)
IOMMU Group 10 01:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b6] (rev 02)
IOMMU Group 10 01:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b1] (rev 02)
IOMMU Group 10 02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
IOMMU Group 10 02:02.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
IOMMU Group 10 02:03.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
IOMMU Group 10 02:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b4] (rev 02)
IOMMU Group 10 03:00.0 USB controller [0c03]: ASMedia Technology Inc. Device [1b21:1343]
IOMMU Group 10 04:00.0 Network controller [0280]: Intel Corporation Wireless 8265 / 8275 [8086:
@bsodmike
bsodmike / edgemax-ad-blocker-dnsmasq.md
Last active September 4, 2023 18:28
HOWTO Ubiquity EdgeMAX Ad Blocking Content Filtering using EdgeRouter

Ubiquity EdgeMAX Ad Blocking Content Filtering using EdgeRouter

This is based on a guide on the Ubnt forums.

Log into your Edgerouter and run the following - sudo -i && vi /config/user-data/update-adblock-dnsmasq.sh This will switch you to the root user and open up vi.

#!/bin/bash
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
@bsodmike
bsodmike / edgerouter-network-isolation.txt
Last active April 16, 2023 05:32
EdgeRouter IoT/Guest Network Isolation
# Reference: https://www.youtube.com/watch?v=baj3747yfos
configure
set firewall group network-group PROTECT_NETWORKS
set firewall group network-group PROTECT_NETWORKS description "Protected Networks"
set firewall group network-group PROTECT_NETWORKS network 10.0.0.0/16
set firewall name BLOCK_IN
set firewall name BLOCK_IN default-action accept
set firewall name BLOCK_IN rule 10 action accept
set firewall name BLOCK_IN rule 10 description "Accept Established/Related"