// Models/User.cs
namespace MyApp.Api.Models;
public class User
{dotnet tool install --global Microsoft.OpenApi.Kiota
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Notify Slack via Email on PR Merge | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| types: | |
| - closed | |
| jobs: | |
| notify: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| <ItemGroup> | |
| <PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" /> | |
| <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" /> | |
| <PackageReference Include="Serilog.Extensions.Logging" Version="7.0.0" /> | |
| <PackageReference Include="Serilog.Formatting.Compact" Version="1.1.0" /> | |
| <PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" /> | |
| </ItemGroup> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace SomeLambdaFunction | |
| { | |
| public class ApplicationSettings | |
| { | |
| private const string ConnectionStringEnvironmentalVariableName = "MY_POSTGRES_CONNECTIONSTRING"; | |
| public ApplicationSettings() | |
| { | |
| var isMissingEnvironmentalVariableData = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Needs these package in the csproj | |
| <ItemGroup> | |
| <PackageReference Include="CSharpFunctionalExtensions" Version="2.38.1" /> | |
| <PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.5.2" /> | |
| <PackageReference Include="MediatR" Version="12.0.1" /> | |
| <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.5" /> | |
| <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Based on https://studio3t.com/knowledge-base/articles/mongodb-query-performance/ | |
| // THESE ARE THE Database.Collection | |
| var scope = [ | |
| "apps.appInstalls", | |
| "apps.apps" | |
| ] | |
| // These are the operations to check | |
| var generalOps = [ | |
| "query", |
With Github actions, each 'shell' has a different way of setting environment variables.
here's a list
env: MSG: Hello
How to run some Node code in Docker because you're smart and don't want to have evil Node installed on your PC.
NODE DOCKER VERSIONS: https://hub.docker.com/_/node
docker run --rm -it -v ${PWD}:/src/someProject --name npm-stuff node /bin/bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Get a list of all indicies | |
| GET /_cat/indices | |
| -- | |
| GET /_cat/aliases <-- get the aliases to the indicies | |
| -- normal searching |
NewerOlder