Skip to content

Instantly share code, notes, and snippets.

View davidldennison's full-sized avatar
🎯
Focusing

David Dennison davidldennison

🎯
Focusing
View GitHub Profile
@davidldennison
davidldennison / sourceindex.md
Created October 12, 2025 23:04 — forked from baldurk/sourceindex.md
Source indexing for github projects

Symbol Servers

I'm assuming you are familiar with symbol servers - you might not have one set up yourself for your own projects, but you probably use Microsoft's public symbol server for downloading symbols for system DLLs.

For your own projects it might be useful to set up a symbol server - I won't go into how you do that here since it's well documented elsewhere, but basically you just set up a folder somewhere - say X:\symbols\ or \servername\symbols or even http://servername.foo/symbols/ which has a defined tree structure:

symbols/
symbols/mymodule.pdb/
symbols/mymodule.pdb/123456789012345678901234567890122/
@davidldennison
davidldennison / replacevar-script.js
Created July 6, 2025 20:36 — forked from erikyo/replacevar-script.js
Adds to Yoast an additional replacement variable both in frontend and snippet preview (backend)
/* inspired from https://github.com/Yoast/wpseo-woocommerce/blob/trunk/js/src/yoastseo-woo-replacevars.js */
/* global jQuery, YoastSEO, app, globals YoastACFAnalysisConfig */
var pluginName = "additionalVariablePlugin";
var ReplaceVar = window.YoastReplaceVarPlugin && window.YoastReplaceVarPlugin.ReplaceVar;
var placeholders = {};
var modifiableFields = [
"content",
"title",
@davidldennison
davidldennison / alttextgenerator.cs
Created July 3, 2025 02:43 — forked from elbruno/alttextgenerator.cs
alttextgenerator.cs
#:package OllamaSharp@5.1.19
using OllamaSharp;
// set up the client
var uri = new Uri("http://localhost:11434");
var ollama = new OllamaApiClient(uri);
ollama.SelectedModel = "gemma3";
var chat = new Chat(ollama);
@elbruno
elbruno / alttextgenerator.cs
Created June 25, 2025 14:52
alttextgenerator.cs
#:package OllamaSharp@5.1.19
using OllamaSharp;
// set up the client
var uri = new Uri("http://localhost:11434");
var ollama = new OllamaApiClient(uri);
ollama.SelectedModel = "gemma3";
var chat = new Chat(ollama);
@stong
stong / 0x80071AB1-fix.md
Last active January 27, 2026 12:48
My solution for Windows Update error 0x80071AB1 (ERROR_LOG_GROWTH_FAILED)

I was trying to apply some Windows updates (specifically KB5048652) and it was failing. The system would reboot and try to apply the update (where it spins before the login screen), fail to apply the update, undo the update, and reboot.

Checking C:\Windows\Logs\CBS\CBS.log, I saw poqexec.exe failing on HRESULT 0x80071AB1 - ERROR_LOG_GROWTH_FAILED.

This HRESULT means

An attempt to create space in the transactional resource manager's log failed. The failure status has been recorded in the event log.

Log here might give the impression of a log file, but I think it is actually related to "log" in the concept of "transaction log for commit and rollback" like in databases. For an update service, I'd expect Windows wants the filesystem to have some kind of transaction mechanism so failed updates can be cleanly and safely rolled back. I'm not an engineer at Microsoft and I am just speculating, so I could be wrong.

@jlantz
jlantz / filestruct.py
Created November 15, 2024 16:43
Simple script to help prevent GitHub Copilot from creating duplicates in a larger project
#!/usr/bin/env python3
# USAGE: python filestruct.py <path> > report.md
# Add to your .github/copilot-instructions.md
import os
import re
import sys
@sulco
sulco / copy-prompts.bookmarklet.js
Created November 1, 2024 12:14
Copy Prompts bookmarklet
javascript:(function(){
const result = [...document.querySelectorAll('.text-bolt-elements-textSecondary + div > div > ._MarkdownContent_1mdbx_1')]
.map(node => node.innerText)
.reduce((acc, curr) => acc + curr + '\n\n', '');
navigator.clipboard.writeText(result)
.then(() => alert('Content copied to clipboard!'))
.catch(err => alert('Failed to copy: ' + err));
})();
@MarekBodinger
MarekBodinger / openJinaAi.js
Created August 6, 2024 12:00
Open current URL in Jina AI
//bookmarklet_title:Open in Jina AI
window.open(`https://r.jina.ai/${window.location.href}`, '_blank');
@ninmonkey
ninmonkey / settings.json
Created May 23, 2024 23:36
VsCode Settings - Default using Pwsh profile settings.json
{
// settings related to pwsh terminal
"powershell.enableProfileLoading": true,
"terminal.integrated.defaultProfile.windows": "Pwsh🐒", // "Pwsh🐒",
// The terminal profile to use for automation-related terminal usage like tasks and debug. This setting will currently be ignored if `terminal.integrated.automationShell.windows` (now deprecated) is set.
"terminal.integrated.automationProfile.windows": {
"args": [
"-NoLogo"
],
@tsmarvin
tsmarvin / !README.MD
Last active August 27, 2025 03:29
TM-ProfileUtility

TM-ProfileUtility Module

Introduction

TM-ProfileUtility is a PowerShell module designed to provide various profile-related utility functions. Specifically this module is designed for use with my PowerShell Profile.

This module is part of a suite of tools designed to improve and streamline the PowerShell commandline and scripting experience.
Check out the rest of the modules by visiting my page on the PowerShell Gallery.

Features