Skip to content

Instantly share code, notes, and snippets.

title Corporate TechRadar Check for GitHub Copilot
description A skill for GitHub Copilot to check technology recommendations against the corporate TechRadar.

This skill allows GitHub Copilot to automatically check the ring (e.g., "adopt", "hold") of potentially useful technologies during code generation, by consulting the corporate techradar hosted at

import express from 'express';
import jwt from 'jsonwebtoken';
import { createClient } from 'redis';
import { URLSearchParams } from 'url';
import { createMcpServer, McpServerConfig } from '@modelcontextprotocol/sdk/server';
import { Request, Response } from 'express';
const app = express();
const port = process.env.PORT || 3000;
openapi: 3.0.1
info:
title: Yeah
description: Foobar
version: "1.0.0"
servers:
- url: https://example.com
paths:
/foo:
{
"openapi": "3.1.0",
"paths": {
"/catalog": {
"get": {
"parameters": [
{
"in": "query",
"name": "url",
"schema": {
{
"openapi": "3.0.1",
"info": {
"title": "Minimal API",
"version": "1.0.0"
},
"paths": {
"/object": {
"get": {
"summary": "Get Objects",
@gunzip
gunzip / test-api.json
Last active September 16, 2025 07:35
{
"openapi": "3.0.1",
"info": {
"title": "Minimal API",
"version": "1.0.0",
"description": "A minimal OpenAPI 3.0.1 specification with a single /documents endpoint"
},
"paths": {
"/test": {
"post": {
openapi: 3.1.0
info:
title: Test API
description: Test API.
version: 1.0.0
servers:
- url: https://localhost/api/v1
- url: https://localhost/api/v2
paths:
/test-multiple-success:
@gunzip
gunzip / Terraform Managed Identity
Last active March 17, 2025 09:56
Trial System Alternative
resource "azurerm_role_assignment" "cosmosdb_reader" {
scope = azurerm_cosmosdb_account.cosmos.id
role_definition_name = "Cosmos DB Built-in Data Reader"
principal_id = azurerm_api_management.apim.identity[0].principal_id
}
import { SpanProcessor, Span, ReadableSpan } from '@opentelemetry/sdk-trace-base';
class RemoveQueryParamsProcessor implements SpanProcessor {
onStart(span: Span): void {
// No action on span start for this processor
}
onEnd(span: ReadableSpan): void {
// Check if the span has an attribute that represents a URL
const url = span.attributes['http.url'] as string | undefined;
#!/bin/bash
# Directory dei moduli
MODULES_DIR=".terraform/modules"
HASHES_FILE="tfmodules.lock.json"
# Scaricare i moduli
terraform init
# Funzione per calcolare l'hash di un modulo