Skip to content

Instantly share code, notes, and snippets.

View Chuckame's full-sized avatar

Chuckame Chuckame

View GitHub Profile
@mietzen
mietzen / m720q_setup.md
Last active November 5, 2025 21:52
m720q Setup: i7 8700 65W

m720q Setup with an i7-8700 65W

I had trouble getting my i7-8700 65W to work in my m720q with a 65W PSU. It was working fine in Windows, but was throttling down first to 20 Watt, then to 15, 10, and finally to 7 Watt, which resulted in a maximum clock speed of 800 MHz.

The main problem seems to be a mix of crappy firmware settings from Lenovo/Intel (Reddit Post) and the weak power supply.

To fix this problem, we have to install some tools, and for them to work, you have to make sure that secure boot is OFF; otherwise, the kernel doesn't allow you to set the CPU power limits. The easiest way is to install in legacy mode; therefore, you need to disable secure boot and enable CSM in the BIOS, select legacy boot preferred.

@zhum
zhum / nvidia-smi-q.txt
Last active November 9, 2025 10:17
nvidia-smi cheatsheet
nvidia-smi --query-gpu=OPTION,... [--format=csv[,hoheader]]
timestamp - YYYY/MM/DD HH:MM:SS.msec
driver_version
count
name or gpu_name
serial or gpu_serial
uuid or gpu_uuid
pci.bus_id or gpu_bus_id - domain:bus:device.function, in hex
pci.domain
@sandor-nemeth
sandor-nemeth / PropertyLogger.java
Last active October 14, 2025 12:05
Spring Boot - Log all configuration properties on application startup
package io.github.sandornemeth.spring;
import java.util.Arrays;
import java.util.stream.StreamSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.env.AbstractEnvironment;