With Github actions, each 'shell' has a different way of setting environment variables.
here's a list
env: MSG: Hello
/* | |
<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> | |
namespace SomeLambdaFunction | |
{ | |
public class ApplicationSettings | |
{ | |
private const string ConnectionStringEnvironmentalVariableName = "MY_POSTGRES_CONNECTIONSTRING"; | |
public ApplicationSettings() | |
{ | |
var isMissingEnvironmentalVariableData = false; |
/* | |
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" /> |
// 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
-- Get a list of all indicies | |
GET /_cat/indices | |
-- | |
GET /_cat/aliases <-- get the aliases to the indicies | |
-- normal searching |
To access any locked/private resources in GitHub, you need a PAT. This is a specific access key that you can create to unlock whatever resource you own.
includeIf
hack (unfortunately)git init
already occur on it..gitconfig
file.gitconfig
files where you want have separate settings for different work / personal / serious-projects.gitdir/i
.. most examples say to use gitdir
but that fails on Windows OS.
docker run --rm -it -v ${PWD}:/src/scripts --name XXXXXX IMAGENAME /bin/bash
--rm
this instance will be deleted once we 'exit' the image-it
interactive mode-v
sharing folders (called sharing VOLUMES)${PWD}
source folder :
denotes that we're sharing between these two volumesCreate a mongo docker instance (from an image) and start a new shell (this is not a MongoDB shell .. just a normal BASH shell)