Skip to content

Instantly share code, notes, and snippets.

@clientbala
clientbala / PulumiOverHttpContainer.cs
Created May 8, 2023 18:58
PulumiOverHttpContainer
using Microsoft.AspNetCore.Mvc;
using Pulumi.Automation;
using System.Reflection;
using Resources = Pulumi.AzureNative.Resources;
using Storage = Pulumi.AzureNative.Storage;
namespace PulumiOverHttpContainer.Controllers
{
public class CInlineProgramArgs : InlineProgramArgs
{
@davidfowl
davidfowl / MinimalAPIs.md
Last active May 8, 2024 02:30
Minimal APIs at a glance
@cezarypiatek
cezarypiatek / .editorconfig
Last active February 14, 2023 21:48
This snippet set severity level to error for different rules related to the reference nullability
[*.cs]
# CS8603: Possible null reference return.
dotnet_diagnostic.CS8603.severity = error
# CS8604: Possible null reference argument.
dotnet_diagnostic.CS8604.severity = error
# CS8606: Possible null reference assignment to iteration variable
dotnet_diagnostic.CS8606.severity = error
# CS8600: Converting null literal or possible null value to non-nullable type.
dotnet_diagnostic.CS8600.severity = error
# CS8602: Dereference of a possibly null reference.
@xt0rted
xt0rted / 2017.vsconfig
Last active October 19, 2022 18:12
Boxstarter script for setting up my dev environment
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.Component.MSBuild",
"Microsoft.VisualStudio.Component.Static.Analysis.Tools",
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices",
"Microsoft.VisualStudio.Component.PortableLibrary",
@Ridermansb
Ridermansb / .gitignore
Last active May 5, 2021 22:26
Boxstarter script
*.sublime*
@davidfowl
davidfowl / dotnetlayout.md
Last active May 15, 2024 07:06
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/