Skip to content

Instantly share code, notes, and snippets.

@adamnew123456
adamnew123456 / README.md
Created November 17, 2024 17:03
Command and Conquer 3 - LAN Protocol Exploration and Tooling

LAN Discovery Protocol

Basics

LAN discovery works by broadcasting encrypted UDP packets to the address 255.255.255.255, from port 8086-8093 (inclusive). Every LAN discovery message is sent across each of these ports with the same content.

The game does this as a fallback, in case it can't bind its preferred discovery port for whatever reason. It prefers to listen for broadcasts on port 8086 but

@fieldse
fieldse / Get git file creation dates.md
Last active October 31, 2025 06:43
Git tricks: file creation dates for all files in a Git repo directory

Git - print file creation dates

Scenario:

You have a directory of files in a git repository and you want to extract their original creation dates. Git does not track file creation date metadata, but you can get the first time the file was added in a commit.

This one-liner will print the dates and filenames sorted, in column format.