Skip to content

Instantly share code, notes, and snippets.

View dsanders11's full-sized avatar

David Sanders dsanders11

View GitHub Profile
@itsananderson
itsananderson / README.md
Created November 6, 2025 19:08
Scanning for forward declarations

Let's say you want to scan for C++ forward declarations in a codebase. Specifically the Chromium codebase.

This Gist captures some details about how to do that with ast-grep. You may also want jq for a few of the commands.

Setup

  • Make sure you have ast-grep and jq installed
  • Copy sgconfig.yml to the root of the Chromium repo
  • Create a folder at the root of the Chromium repo called ast-grep-rules
  • Copy forward-declaration.yaml into that folder
@nebriv
nebriv / DDM2.0.md
Last active November 25, 2025 19:58
Dell Display Manager 2.0 command line documentation

Dell Display Manager 2.0 Command Line

Decompiled DLL with ILSpy to identify various commands.

Most commands can be found in DDM2._0_UX.CmdBackground.cmdService_DoWork

Write commands can be prefixed with int:command to specify which monitor to send the command to.

.\DDM.exe /0:writebrightnesslevel 50