Skip to content

Instantly share code, notes, and snippets.

View waltercool's full-sized avatar

WalterCool waltercool

View GitHub Profile
@waltercool
waltercool / process_ucode.sh
Last active April 2, 2021 18:35
Process Intel Microcode for your system only.
#!/bin/sh
# This tool requires git and iucode_tool.
# iucode_tool can be found at most repositories, or https://gitlab.com/iucode-tool/
#
# This script is NOT DESIGNED to be run as root. You must manually copy the output at the
# intel firmware folder. This is for security reasons.
MICROCODE_DATA="/tmp/microcode_data"
OUTPUT="microcodes"
import time
import os
import logging
import random
from datasets import load_dataset
class QuantAutoGPTQ:
def __init__(self, model_name_or_path, output_dir, dataset,
num_samples=128, trust_remote_code=False, cache_examples=True,
use_fast=True, use_triton=False, bits=[4], group_size=[128], damp=[0.01],
@waltercool
waltercool / z13-audio-fix-summary.md
Created July 16, 2026 15:17 — forked from sankao/z13-audio-fix-summary.md
ROG Flow Z13 2025 Audio fix

ROG Flow Z13 2025 Audio fix

ROG Flow Z13 2025 (ai max 395) Audio Fix

Disclaimer: I don't know much about kernel development, this fix was figured out with AI assistance.
My problem was that the speakers work but are way quieter than Windows. Kernel logs show:

cs35l41-hda: Falling back to default firmware.

The fix is simple: copy-paste the ROG Ally entry with a different device ID. It solves the audio problem subjectively (we're far from amazing sound, but at least twice as loud).

@waltercool
waltercool / gist:bc73b6ba143ea5c02708a650c6b6dfc1
Last active July 17, 2026 15:44
RK3588 Local AI Setup Guide (Orange Pi 5 Plus)