Skip to content

Instantly share code, notes, and snippets.

View Pastitas's full-sized avatar

Pastitas

View GitHub Profile
@Pastitas
Pastitas / gist:8da878a3012c4b20ec02ab5466243a9a
Created May 27, 2024 14:46
BSP-D8 Documented and undocumented config setting button combos
Conserves last mode
Xinput:
Power + rb: bluetooth xinput, cyan color
usb: xinput or dpinput auto, cyan color
Power + lb: usb receiver xinput mode, cyan color
Settings:
Power + A + Y: Switch between nintendo and xbox layout
@Pastitas
Pastitas / Readme.md
Created July 29, 2023 17:04 — forked from dixyes/Readme.md
ASUS ROG Zephyrus G14 2022 GA402RJ pci passthrough

ASUS ROG Zephyrus G14 2022 GA402RJ pci passthrough

This is a record for my own passthrough setup, I can finally use a single laptop for windows gaming and linux programming at the same time.

The device

My G14 is GA402RJ(6800HS + 6700s) with MT7922 WiFi/BT card.

At this time, BIOS version is 309.

@Pastitas
Pastitas / flatcam_recipes.md
Last active May 1, 2022 13:03
Recipes for flatcam cnc pcb milling on snapmaker 2.0

Twisted Vbit

NCC path settings:

Overlap: 60% Method: Standard Margin: 0 Connect: true Contour: true Offset: false

@Pastitas
Pastitas / CNC.md
Created June 14, 2021 09:26
some cnc gcode commands

Z, X, Y probes:

(Z-Probe)
G91
G38.2 Z-30 F60
G90
G10 L20 P1 Z10.1 (Set the active WCS Z0)
(Retract from the touch plate)
G91
G0 Z5
@Pastitas
Pastitas / HibernateNotes.md
Last active September 6, 2023 06:57
Auto hibernate reboot to windows and fancontrol scritp

Enable hibernate and reboot into windows for dual booting

sudo vim /usr/lib/systemd/system-sleep/windows

#!/bin/bash

# Enable the use of hybrid-sleep for hibernate/reboot into windows when dual booting.
# requires the flag HybridSleepMode=reboot to be enabled in /etc/systemd/sleep.conf
# and grub-reboot to be installed
@Pastitas
Pastitas / MSI_B450I_Gaming_Plus_AC-IOMMU
Last active December 6, 2019 00:45
MSI_B450I_Gaming_Plus_AC IOMMU GROUPS
IOMMU Group 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
IOMMU Group 00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
IOMMU Group 00:08.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse Internal PCIe GPP Bridge 0 to bus[E:B] [1022:1484]
IOMMU Group 00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61)
IOMMU Group 00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
IOMMU Group 00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 0 [1022:1440]
IOMMU Group 00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Matisse Device 24: Function 1 [1022:1441]
IOMMU Gr
#/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do =${d#*/iommu_groups/*};
n=${n%%/*}; printf 'IOMMU Group %s ' "$n"; lspci -nns "${d##*/}"; done;
@Pastitas
Pastitas / B450-I-Aorus-Pro-Wifi_IOMMU
Last active December 5, 2019 23:48
B450 I Aorus Pro Wifi IOMMU Groupings
IOMMU Group 00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse PCIe Dummy Host Bridge [1022:1482]
IOMMU Group 00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Starship/Matisse GPP Bridge [1022:1483]
IOMMU Group 01:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset USB 3.1 XHCI Controller [1022:43d5] (rev 01)
IOMMU Group 01:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset SATA Controller [1022:43c8] (rev 01)
IOMMU Group 01:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Bridge [1022:43c6] (rev 01)
IOMMU Group 02:00.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
IOMMU Group 02:01.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)
IOMMU Group 02:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 400 Series Chipset PCIe Port [1022:43c7] (rev 01)