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);
@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

@erikyo
erikyo / woocommerce_layered_navigation_add_classes.php
Last active July 6, 2025 20:38
Adds some useful classes to the WooCommerce layered navigation widget. This makes it very easy to stylise attribute colours or anything that can be represented with an icon.
<?php
/**
* Adds some useful classes to the WooCommerce layered navigation widget.
* This makes it very easy to stylise attribute colours or anything that can be represented with an icon.
*
* @param string $term_html - the item html
* @param object $term - the item props
*
* @return string - the old html list content wrapped inside a div with as class term id, term name and taxonomy