Skip to content

Instantly share code, notes, and snippets.

@drewlsvern
drewlsvern / gist:1d41174e50cb4f317e27143a5185032c
Last active July 8, 2026 20:30
pwsh core script to count lines of code
#!/usr/bin/env pwsh
<#
.SYNOPSIS
Counts lines of code in a directory tree, summarized by file extension / language.
.DESCRIPTION
Recursively scans a directory, skipping common noise directories (.git, node_modules, etc.)
and binary files, then prints a table of extension, language, file count, and line count,
sorted by line count descending.
Performance: the file walk + line counting is done by an embedded C# type (compiled via
@drewlsvern
drewlsvern / settings.json
Created September 21, 2023 21:45
vs code custom colors
{
"diffEditor.hideUnchangedRegions.enabled": true,
"workbench.colorTheme": "Darker than One Dark Pro (Contrast)",
"editor.mouseWheelZoom": true,
"workbench.colorCustomizations": {
"list.activeSelectionForeground": "#FF990F",
"list.inactiveSelectionForeground": "#FF990F",
"sideBar.foreground": "#e2e2dc",
"editor.lineHighlightBackground": "#33363A",
"gitlens.trailingLineForegroundColor":"#c7a674"