Skip to content

Instantly share code, notes, and snippets.

View diegohb's full-sized avatar

Diego Bustamante diegohb

  • Expert Vision Software
  • Gaithersburg, MD
View GitHub Profile
@diegohb
diegohb / RouteDiagnosticsFilter.cs
Last active August 29, 2015 14:04
ASP.NET WebAPI route configuration diagnostics filter
using System;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Http.Filters;
public class RouteDiagnosticsFilter : ActionFilterAttribute
{
public override void OnActionExecuted(HttpActionExecutedContext pActionContext)
{
@diegohb
diegohb / Unfollow people from twitter
Created March 5, 2015 14:29
Will allow you to bulk-unfollow people in twitter.
//Run this from your twitter account's following page: https://twitter.com/following
//if you have more than a scroll-page worth of following, keep scrolling so they load...
//but I wouldn't attempt to process more than a few hundreds at a time.
//load up the console (F12), and execute the following:
jQuery("div.GridTimeline").find("button.user-actions-follow-button span.following-text:visible").click()
<template>
<ul class.bind="ContainerCssClass">
<li role="presentation" repeat.for="navItem of BoundRouter.navigation" class="${navItem.isActive ? ActiveItemCssClass : ''}">
<a data-toggle="${IsCollapseEnabled ? 'collapse' : ''}" data-target="${IsCollapseEnabled ? CollapseTarget : ''}"
href.bind="navItem.href">
<span class.bind="navItem.settings.cssClass">
${navItem.settings.isIcon ? '' : navItem.title}
</span>
</a>
</li>
@diegohb
diegohb / Teamcity_Metarunner_AzureAppServiceFTPDeploy.xml
Last active November 17, 2019 04:25
A meta-runner for Teamcity that wraps 3 steps - webapp stop, ftp upload, and webapp start
<?xml version="1.0" encoding="UTF-8"?>
<meta-runner name="Deploy: Azure App Service - FTP">
<description>Deploy to Azure app service via FTP.</description>
<settings>
<parameters>
<param name="app-service.deployUsername" value="" />
<param name="app-service.name" value="" />
<param name="deploy.source.dir" value="**" />
<param name="app-service.resource-group" value="" />
<param name="app-service.slotName" value="" spec="select data_5='qa' label_5='QA' label_3='UAT' data_7='production-2' display='normal' label_7='Production' data_1='dev' label_1='Development' data_3='uat'" />
@diegohb
diegohb / Import-LMStudioToOllama.ps1
Last active January 13, 2026 21:37
Reuse LMStudio models in Ollama. Add/Import LMStudio downloaded models to Ollama.
# PowerShell script to import LMStudio GGUF models into Ollama
param(
[string]$LMStudioPath = "E:\Development\aigpt\lmstudio-models",
[int]$MaxConcurrency = 4
)
function Write-Status {
param([string]$Message, [string]$Color = "White")
Write-Host $Message -ForegroundColor $Color
}
@diegohb
diegohb / Test-ModelParsing.Tests.ps1
Last active January 27, 2026 07:35
The `Test-OpenCodeProviders.ps1` script validates that all configured OpenCode AI providers are working correctly by automatically testing connectivity to each one. It discovers your configured providers, selects a test model from each, sends a simple message, and checks for a successful response. This helps OpenCode users identify which provide…
#Requires -Modules Pester
Describe "Model Parsing Tests" {
BeforeAll {
# Import the main script functions
. $PSScriptRoot\..\Test-OpenCodeProviders.ps1
}
Context "Array Indexing with Where-Object" {
It "Should return array even with single match" {
@diegohb
diegohb / UvcsGitManager.ps1
Created February 1, 2026 11:32
The primary goal of these scripts is to allow a developer to remain in a UVCS-first workflow while using IDEs that default to Git. They enforce technical constraints required by the GitServer bridge to prevent data corruption and history mismatches.
<#
.SYNOPSIS
Consolidated management for UVCS GitServer and GitSync bridges.
#>
function Set-UvcsGitGlobalConfig {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]$RootPath
@diegohb
diegohb / SKILL.md
Created February 8, 2026 11:23
deepwiki-research
name deepwiki-research
description Forces the agent to use deepwiki.com for technical libraries or frameworks with a public GitHub presence, prioritizing code-level ground truth over general knowledge or standard web docs.
license MIT
compatibility opencode
metadata
purpose priority target
documentation-enforcement
high
github-repositories
@diegohb
diegohb / AureliaSkill-Reference.md
Last active February 12, 2026 04:24
To provide another AI with an expert-level understanding of Aurelia 2, the following prompt is structured in a logical progression—from foundational philosophy to internal execution mechanics—ensuring the model understands not just the "how," but the "why" behind the framework's architecture.

Aurelia v2 Application Guidelines

Last Updated: 2026-02-11
Purpose: Architectural patterns and conventions for Aurelia v2 applications


1. Global Architecture & Project Structure

Feature-First Architecture

@diegohb
diegohb / optimize-agent-instructions.md
Last active April 21, 2026 10:13
OpenCode: Command - Optimize Agent Instructions
description Refactors markdown files to be highly optimized for LLM/Agent consumption using dense XML macro-structures and progressive discovery.
agent build
subtask true
You are an elite AI Prompt and Context Engineer. Your strict mandate is to translate human-readable markdown documentation into high-density, agent-optimized instruction files. You do not write for humans; you optimize strictly for machine attention mechanisms, token efficiency, and progressive context loading.