Skip to content

Instantly share code, notes, and snippets.

View KevM's full-sized avatar

Kevin Miller KevM

View GitHub Profile
@KevM
KevM / opencode.json
Created April 30, 2026 17:08
Setup for open code with Google AI Access and the noise removed from the model list
{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"opencode-gemini-auth@latest",
"superpowers@git+https://github.com/obra/superpowers.git"
],
"provider": {
"google": {
"whitelist": [
"gemini-2.5-flash",
@KevM
KevM / trunk.jsx
Last active February 10, 2026 16:50
Trmnl Plugin
<div class="view view--full">
<div class="layout layout--col gap--distribute h--full">
<!-- Live Stats Header -->
<!-- Changed gap--distribute to gap--medium and added justify--center to group them better -->
<div class="flex flex--row flex--center-y flex--center-x flex--stretch-x gap--xxlarge">
${ctx.todayGrid !== undefined ? `
<div class="flex flex--row flex--center-y gap--small">
<span class="title title--xxlarge">${(ctx.todayGrid).toFixed(1)}</span>
${GRID_ICON_ALMOST_LARGE}
@KevM
KevM / pypowerwall.env
Last active April 8, 2024 11:22
PyPowerwall Debug
PW_TIMEZONE=America/Chicago
PW_STYLE=grafana-dark
TZ=America/Chicago
PW_DEBUG=yes
PW_CACHE_EXPIRE=30
PW_POOL_MAXSIZE=1
@KevM
KevM / main.go
Last active March 15, 2024 20:11
Integration of ARPC with Gin
package main
import (
"github.com/gin-gonic/gin"
"go.uber.org/zap"
)
func main() {
router := gin.New()
logger := zap.NewNoOp() //replace with your logger
@KevM
KevM / foo.go
Last active February 23, 2024 17:58
wee
package wee
func Yippie(s string) {
log.Printf("yippie! %s". s)
}
@KevM
KevM / docker-compose.yml
Last active February 2, 2021 20:14
Minecraft Docker Compose file for Azure
version: "3.7"
services:
mc:
image: itzg/minecraft-server
domainname: my-domain-name
ports:
- 25565:25565
environment:
EULA: "TRUE"
@KevM
KevM / task-experiment.cs
Created December 11, 2020 14:36
exception_in_one_task_should_not_affect_others
public class Experiment
{
private readonly ITestOutputHelper _outputHelper;
public Experiment(ITestOutputHelper outputHelper)
{
_outputHelper = outputHelper;
}
[Fact]
@KevM
KevM / observable_extensions.cs
Created July 5, 2018 20:05
Testing Observables
public static class ObservableExtensions
{
public static Func<bool> WasObserved<T>(this IObservable<T> observableUnderTest, T expected)
{
var wasExpectedObserved = false;
var result = observableUnderTest.Subscribe(s =>
{
wasExpectedObserved = s.Equals(expected);
});
@KevM
KevM / solution-load-times.md
Last active April 10, 2018 20:24
Large .Net Solution Load times

We have a large solution with about 69 projects. Here are the load times I measured in a very non-scientific way.

  1. I opened the IDE.
  2. Clicked on the solution in the MRU selection.
  3. Timed on my phone how long it took to get to a point where a file is editable.
  4. Did a warm up then repeated this 3 times for each configuraion.
App Version Detail Time Notes
@KevM
KevM / regex.txt
Created November 19, 2016 23:27
Port Nuget packages to Paket Regex
Include="(.*\w)(\,\sVersion.*MSIL")>
Include="\1">
packages\\(.*[a-zA-Z])\.\d+((?:\.\d+){1,5})\\lib
packages\\$1\\lib