Skip to content

Instantly share code, notes, and snippets.

View benbhall's full-sized avatar

benhall_io benbhall

View GitHub Profile
@benbhall
benbhall / otel-collector-demo.yml
Last active February 16, 2023 16:45
OTEL Collector Demo
receivers:
otlp:
protocols:
grpc:
http:
filelog:
include: [ /var/log/myservice/*.json ]
operators:
- type: json_parser
timestamp:
@benbhall
benbhall / install-package.ps1
Created November 21, 2019 10:36
Aspose PDF .NET
Install-Package Aspose.PDF
code --install-extension Arjun.swagger-viewer
code --install-extension DavidAnson.vscode-markdownlint
code --install-extension drrouman.git-coauthors
code --install-extension eamodio.gitlens
code --install-extension ms-vscode.csharp
code --install-extension ms-vscode.powershell
code --install-extension streetsidesoftware.code-spell-checker
code --install-extension VisualStudioExptTeam.vscodeintellicode
code --install-extension vscode-icons-team.vscode-icons
code --install-extension yzhang.markdown-all-in-one
@benbhall
benbhall / ReferenceTypeExample2.cs
Created September 28, 2018 08:01
Example of reference type change of reference.
using System;
namespace ReferenceTypes
{
class SimpleObject
{
public int Number { get; set; }
public override string ToString()
{
@benbhall
benbhall / ReferenceTypeExample1.cs
Last active September 28, 2018 07:56
Example of reference type change shared between copy and original.
using System;
namespace ReferenceTypes
{
class SimpleObject
{
public int Number { get; set; }
public override string ToString()
{
@benbhall
benbhall / DateTimeBenchmarks.cs
Created July 16, 2018 18:33
DateTime Benchmarks
using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Exporters;
using BenchmarkDotNet.Attributes.Jobs;
using BenchmarkDotNet.Running;
using NodaTime;
namespace DateTimeCore
{
class Program
dfgdf