This file contains 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
[MemoryDiagnoser()] | |
public class Comparison | |
{ | |
private const string PathSmall = @"E:\SteamLibrary\steamapps\common\X4 Foundations\extensions\crystal_rarities\subst_01.cat"; | |
private const string PathBig = @"E:\SteamLibrary\steamapps\common\X4 Foundations\02.cat"; | |
private static readonly IFileSystem Fs = new FileSystem(); | |
private static readonly CatalogFileReader CatalogFileReader = new(); | |
private static readonly CatalogFile CatalogFileSmall = CatalogFileReader.GetCatalogFile(PathSmall); | |
private static readonly CatalogFile CatalogFileLarge = CatalogFileReader.GetCatalogFile(PathBig); |
This file contains 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 namespace System.Management.Automation | |
using namespace System.Management.Automation.Language | |
if ($host.Name -eq 'ConsoleHost') | |
{ | |
Import-Module PSReadLine | |
} | |
oh-my-posh --init --shell pwsh --config C:\Users\deniz\OneDrive\Belgeler\my-posh\material.omp.json | Invoke-Expression |
This file contains 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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": [ | |
{ | |
"command": { | |
"action": "copy", | |
"singleLine": false | |
}, | |
"keys": "ctrl+c" | |
}, |
This file contains 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
"LocalStack": { | |
"UseLocalStack": false | |
}, | |
"AWS": { | |
"Profile": "<your aws profile>", | |
"Region": "eu-central-1" | |
} |
This file contains 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
"LocalStack": { | |
"UseLocalStack": true, | |
"Session": { | |
... | |
}, | |
"Config": { | |
... | |
} | |
} |
This file contains 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
"LocalStack": { | |
"UseLocalStack": true, | |
"Session": { | |
"AwsAccessKeyId": "my-AwsAccessKeyId", | |
"AwsAccessKey": "my-AwsAccessKey", | |
"AwsSessionToken": "my-AwsSessionToken", | |
"RegionName": "eu-central-1" | |
}, | |
"Config": { | |
"LocalStackHost": "localhost", |
This file contains 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 void ConfigureServices(IServiceCollection services) | |
{ | |
// Add framework services. | |
services.AddMvc(); | |
services.AddLocalStack(Configuration) | |
services.AddDefaultAWSOptions(Configuration.GetAWSOptions()); | |
services.AddAwsService<IAmazonS3>(); | |
services.AddAwsService<IAmazonDynamoDB>(); | |
} |
This file contains 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
service: profile | |
plugins: | |
- serverless-localstack | |
custom: | |
localstack: | |
host: http://${env:LOCAL_STACK_HOST} | |
stages: | |
- local |
This file contains 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<APIGatewayProxyResponse> CreateProfileAsync(APIGatewayProxyRequest request, ILambdaContext context) | |
{ | |
WriteVariables(context); | |
string requestBody = request.Body; | |
context.Logger.LogLine($"Request Body\n {requestBody}"); | |
AddProfileModel addProfileModel = JsonConvert.DeserializeObject<AddProfileModel>(requestBody); | |
context.Logger.LogLine($"Decoding Base64 image"); |
This file contains 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 Handler() | |
{ | |
ISession session = SessionStandalone | |
.Init() | |
.WithSessionOptions(AwsAccessKeyId, AwsAccessKey, AwsSessionToken, RegionName) | |
.WithConfig(LocalStackHost) | |
.Create(); | |
_awsS3Client = session.CreateClient<AmazonS3Client>(); | |
_awsDynamoDbClient = session.CreateClient<AmazonDynamoDBClient>(); |
NewerOlder