Skip to content

Instantly share code, notes, and snippets.

View luafanti's full-sized avatar

Artur Bartosik luafanti

View GitHub Profile
@luafanti
luafanti / aws-s3-sync-iam-permissions.json
Created March 7, 2023 14:30
AWS IAM policy that grants the necessary permissions for the s3 sync CLI command.
{
"Version": "2012-10-17",
"Statement": [
{
"Resource": [
"arn:aws:s3:::YOUR_BUCKET_NAME",
"arn:aws:s3:::YOUR_BUCKET_NAME/*"
],
"Sid": "AllowSync",
"Effect": "Allow",
@luafanti
luafanti / Java non SnapStart.csv
Last active February 17, 2023 10:47
Java Non SnapStart
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
<table class="table-bordered">
<tr>
<th colspan="2" style="horizontal-align : middle;text-align:center;">Non SnapStart</th>
<th colspan="4" style="horizontal-align : middle;text-align:center;">Cold Start (ms)</th>
<th colspan="4" style="horizontal-align : middle;text-align:center;">Warm Start (ms)</th>
</tr>
<tr>
<th scope="col"> memory (MB)</th>
<th scope="col">error rate</th>
<th scope="col">p50</th>
#!/bin/sh
brew install helm
brew install helmfile
helm plugin install https://github.com/databus23/helm-diff
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",