Skip to content

Instantly share code, notes, and snippets.

View Arie's full-sized avatar

Arie Arie

View GitHub Profile
@Arie
Arie / Mellanox ConnectX 3 - 4
Last active October 22, 2024 16:33
Mellanox ConnectX 3 / 4
Updating firmware:
1. Boot Ubuntu 22.04 USB stick (24.04 does not support mstconfig on ConnectX 3)
2. Enable universe repository (add universe after the security.ubuntu.com line in `/etc/apt/sources.list)`
3. `apt-get update && apt-get install ethtool mstflint`
4. Find PCI ID with `lspci`
5. Find PS ID of mellanox card: `mstflint -d pci-id-here q`
6. Download and unzip firmware for the correct PS ID from https://network.nvidia.com/support/firmware/firmware-downloads/
@Arie
Arie / Re: How to get higher pkg C-States on Asrock Z790 motherboards (guide)
Last active February 19, 2026 11:41
Re: How to get higher pkg C-States on Asrock Z790 motherboards (guide)
https://www.reddit.com/r/ASRock/comments/1998ozl/how_to_get_higher_pkg_cstates_on_asrock/
Notes for Asrock Z790 board:
Prereq:
USB stick that will fit Windows 11 installer (8-ish GB)
Basic DOS skills like "C:" and "cd some-directory".
1.
Get the SCEWIN tool from https://github.com/ab3lkaizen/SCEHUB.
@Arie
Arie / 2v2mge.cfg
Created September 16, 2025 17:20
2v2mge
exec "rgl_base"
servercfgfile "2v2mge" // sets server cfg to this config so that it gets autoexeced on level change
mp_tournament "1"
mp_timelimit "0" // unsets server timelimit
mp_winlimit "0" // unsets winlimit
mp_windifference "0" // unsets windifference
mp_maxrounds "0" // unsets maxrounds
@Arie
Arie / net-smp-affinity
Last active March 16, 2026 12:52
OpenWRT NanoPi R6S net-smp-affinity for 8125-rss
. /lib/functions/uci-defaults.sh
#!/bin/sh
get_device_irq() {
local device="$1"
local line
while true; do
line=$(grep -m 1 "${device}\$" /proc/interrupts) && break