Skip to content

Instantly share code, notes, and snippets.

View jzabroski's full-sized avatar
🎯
Focusing

John Zabroski jzabroski

🎯
Focusing
View GitHub Profile
@davidfowl
davidfowl / ResourceModel.md
Last active May 29, 2025 20:53
Aspire Resource Model: Concepts, Design, and Authoring Guidance

Aspire Resource Model: Concepts, Design, and Authoring Guidance

Audience – Aspire integrators, advanced users, and contributors who are defining custom resource types, implementing publishers, or working across both runtime and publish workflows.
This documentation's focus is on hosting integrations NOT client integrations. Just getting started? Jump straight to Quick Start and come back later for the deep‑dive.


Quick Start

A two‑minute "hello‑world" that shows the happy path.

@prerak-proof
prerak-proof / symbology_rosetta.csv
Last active September 26, 2023 13:32
Symbology Rosetta
Type INET CMS Bloomberg Y! Finance Composite RIC Notes
Class Shares BRK.B BRK B BRK/B BRK-B BRKb
Preferred Shares TY- TY PR n/a TY-P TY_p Bloomberg: TY Pfd
Preferred Class Shares BAC-L BAC PRL n/a BAC-PL BAC_pl Bloomberg: BAC Pfd
Warrants OXY+ OXY WS OXY/WS OXY-WT OXY_t
Warrants Class A TDW+A TDW WSA TDW/WS/A TDW-WTA TDW_ta
Rights CELG^ CELG RT CELG-R CELG-RI CELG_r.K 4-letter root ⇒ .K suffix
Units GRP= GRP U GRP/U GRP-UN GRP_u
When Issued POST# POST WI POST-W POST-WI POST_w.K
Rights When Issued GLO^# GLO RTWI GLO-R-W GLO-RIWI GLO_rw
@AnthonyGiretti
AnthonyGiretti / Program.cs
Created April 1, 2020 01:52
Example of Polly retry policy on gRPC client
using DemoGrpc.Domain.Entities;
using DemoGrpc.Protobufs;
using Grpc.Core;
using Microsoft.Extensions.DependencyInjection;
using Polly;
using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using static DemoGrpc.Protobufs.CountryService;

Various search databases and backends as alternatives to Elasticsearch.

Rust

@galenguyer
galenguyer / CodeEval.cs
Last active February 27, 2020 01:44
Arbitrary Code Execution for C#
using System;
using System.CodeDom.Compiler;
using System.Reflection;
using System.Threading.Tasks;
/*
To execute, run
string code = "your code here";
if (!code.Contains("return")) code = "return " + code;
code = code.Trim().TrimEnd(';') + ";";
@urasandesu
urasandesu / Program.cs
Created December 21, 2017 12:11
Using F# Data as a runtime type inferencer for a csv file
using FSharp.Data;
using FSharp.Data.Runtime;
using FSharp.Data.Runtime.StructuralTypes;
using Microsoft.FSharp.Collections;
using System;
using System.Globalization;
using System.Linq;
class Program
{
@dasMulli
dasMulli / Directory.Build.targets
Last active February 21, 2022 23:44
CI build script for a mvc + Webpack SPA app
<Project>
<Target Name="NpmInstall" Condition="Exists('package.json')">
<Exec Command="npm install" />
</Target>
<Target Name="NpmCiTest" Condition="Exists('package.json')">
<Exec Command="npm run ci-test" />
<ItemGroup Condition="'$(TestResultsOutputPath)' != ''">
<TestResultFiles Include="obj\karma-testresults\**" />
@therightstuff
therightstuff / RSAKeys.cs
Last active October 18, 2024 11:42
Import and export RSA Keys between C# and PEM format using BouncyCastle
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.OpenSsl;
using Org.BouncyCastle.Security;
using System;
using System.IO;
using System.Security.Cryptography;
namespace MyProject.Data.Encryption
{
set-strictmode -version 'latest'
$erroractionpreference = 'stop'
function main() {
$a = 'foo'
$f = {
$g = {$a}.getnewclosure()
& $g # "variable '$a' cannot be retrieved because it has not been set."
}.getnewclosure()
& $f
function a($f) {& $f}
function main() {
$f = {write-host 'success'}
a {& $f} # stack-overflow
a {& $f}.getnewclosure() # okay
}
[void] (main)