Skip to content

Instantly share code, notes, and snippets.

@andriybuday
andriybuday / 0 - ServiceHost.cs
Last active June 30, 2026 20:53
Microsoft.Extensions.DependencyInjection with OWIN Self-Hosted WebAPI
// ...
using Microsoft.Owin.Hosting;
// ...
public class ServiceHost
{
private IDisposable server = null;
const string baseAddress = "https://*:443";
public void Start()
@taichikuji
taichikuji / README.md
Last active June 30, 2026 20:52
Get a DDNS up and running with DuckDNS - Step by Step

Get a DDNS up and running with DuckDNS - Step by Step

Understanding DDNS

In summary, DDNS stands for Dynamic DNS. DDNS updates a DNS name in real-time to point to a changing IP address. This is useful for devices without a static IP. For example, companies like Google use static IPs and IP ranges, which are more expensive than ephemeral IPs and IP ranges. DDNS provides a cost-effective alternative, linking a hostname to a dynamic IP address.

How Does DDNS Work?

To use DDNS, you need an account with a DDNS provider. While some services are paid, they are still cheaper than static public IPs from ISPs. A script or service on your device updates the DDNS server with your current IP at regular intervals to maintain the link between your hostname and IP address. Luckily for us, DuckDNS is free for everybody and relays on donations to keep their services running.

@jt000
jt000 / ServiceProviderControllerActivator.cs
Last active June 30, 2026 20:49
Using Microsoft.Extensions.DependencyInjection in WebAPI 2
using System;
using System.Net.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Dispatcher;
using Microsoft.Extensions.DependencyInjection;
namespace Web
{
public class ServiceProviderControllerActivator : IHttpControllerActivator
{
@k16shikano
k16shikano / SKILL.md
Last active June 30, 2026 21:14
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

How to Speed Up Firefox on Linux: The Ultimate Guide 🚀

If you’re a Linux user like PewDiePie (yes, he uses Linux and loves a fast Firefox!), you probably want your browser to launch quickly and run smoothly. Firefox is powerful and privacy-respecting, but sometimes it can feel sluggish out of the box.

Don’t worry - I’ve gathered the best tips and tricks to supercharge your Firefox on Linux. Whether you want faster startup times, smoother browsing, or just a snappier experience, this guide has you covered.


1. Keep Firefox Updated 🔄

@bdebon
bdebon / gist:2335c1315af44773e673effb25430189
Created June 25, 2026 16:09
Skill: Développer des solutions sur mesure pour des personnes à Handicap grâce à l'IA la domotique et la tech
# SKILL — Construire un foyer connecté, digne et fiable pour un proche en perte d'autonomie
> **Version 1 (les piliers).** Inspiré d'un système réel construit pour une maman atteinte d'Alzheimer : une grande télé qui lui montre la date, des photos de famille, un mot doux, et qui sonne quand un proche l'appelle en visio — le tout 100 % à la maison, sans abonnement cloud, pensé pour la **dignité** avant la « surveillance ».
---
## 👋 À LIRE EN PREMIER (toi, l'aidant·e) — 2 minutes
Ce document est un **assistant d'installation**. Tu le **copies-colles en entier** dans une IA, et elle t'**accompagne** pour construire le même genre de système pour ton proche — **à ton rythme** : plus directe si tu as déjà une petite base technique, et elle ralentit + explique tout dès qu'un terme te bloque. Pas besoin d'être expert·e, juste un peu curieux·se.
@leehambley
leehambley / Folinn | Fuling BD612 Series VFD — grblHAL MODVFD Setup Guide.md
Last active June 30, 2026 20:34
FlexiHal with ncSender/IOSender and Fuling/Folinn BD600/BD612 VFDs

Folinn / Fuling BD612 Series VFD — grblHAL MODVFD Setup Guide

Hardware: Zhejiang New Folinn Electric Co. BD612 Series (also sold as BD600 — unit splashes BD600 on boot) Spindle: 4.5kW, 800Hz, 24000rpm, 220V 3-phase, 20A rated Controller: Expatria Technologies FlexiHAL (STM32F446, grblHAL firmware) Plugin: MODVFD v0.05 (grblHAL Plugins_spindle) Communication: Modbus RTU over RS485 Last verified: 2026-05-17


@dmmulroy
dmmulroy / coding-standards-draft.md
Created June 18, 2026 22:39
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.