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
# Below content is in .zshrc file normally under ~/.zshrc | |
# Do NOT replace your entire .zshrc with this content, but rather pick the pieces and APPEND to your existing .zshrc | |
# DOTNET | |
alias dri="dotnet restore --interactive" | |
alias db="dotnet build" | |
# K8S | |
# Usage: kx <context> | |
kx() { |
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
var customer = new { CustomerId = row["CustomerId"].S, Name = row["Name"].S }; |
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
var queryResponse = await client.QueryAsync(query); | |
var row = queryResponse.Items.Single(); |
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
var query = new QueryRequest | |
{ | |
TableName = "customertestjim", | |
KeyConditionExpression = "CustomerId = :Id", | |
ExpressionAttributeValues = new Dictionary<string, AttributeValue> | |
{ | |
{ ":Id", new AttributeValue { S = "12345" }} | |
} | |
}; |
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
using IAmazonDynamoDB client = new AmazonDynamoDBClient(RegionEndpoint.EUNorth1); |
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
// See https://aka.ms/new-console-template for more information | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Amazon; | |
using Amazon.DynamoDBv2; | |
using Amazon.DynamoDBv2.Model; | |
using IAmazonDynamoDB client = new AmazonDynamoDBClient(RegionEndpoint.EUNorth1); |
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
public async Task FunctionHandler(SQSEvent evnt, ILambdaContext context) | |
{ | |
// Calling CreateScope() here is required to resolve scoped services correctly | |
using var scope = ServiceProvider.CreateScope(); | |
await scope.ServiceProvider.GetService<App>().Run(evnt); | |
} |
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
public class CustomerModel | |
{ | |
public string CustomerId { get; set; } | |
public string Name { get; set; } | |
} |
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
{ | |
"Source": "From AWAS CLI", | |
"EntityId": "e165a1df-f792-4043-a601-929c1576ee1d" | |
} |
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
{ | |
"attribute1": { | |
"DataType": "String", | |
"StringValue": "value1" | |
} | |
} |
NewerOlder