Skip to content

Instantly share code, notes, and snippets.

View aperkaz's full-sized avatar
🚀
In the zone

Alain Perkaz aperkaz

🚀
In the zone
View GitHub Profile
@aperkaz
aperkaz / terraform-intro.md
Last active August 3, 2020 16:27
Terraform Introduction

Terraform

Infrastructure as a code technology. Helps you manage your backend infrastructure on 3rd party services like amazon with configurations.

This gist is a short introduction to the basics of Terraform.

Main concepts

Terraform uses its own language to define how your backend should look like, and it figues out automatically how to spin it yup in an efficient manner, using a dependency graph between components.

@aperkaz
aperkaz / DynamoDB.md
Last active August 5, 2020 12:21
DynamoDB Introduction and key concepts

Introduction to DynamoDB

NoSQL databased, by AWS. Key-value store.

deep dive video

Key features

  • Fully managed. Autoscaling, partitioning...
  • Key-value store. NoSQL DB, but relational (all data stored in a DB is relational!)
@aperkaz
aperkaz / asyncForEach.ts
Created August 24, 2022 09:27
🔁 asyncForEach utility in TS
async function asyncForEach<T>(
array: T[],
callback: (el: T, index: number, array: T[]) => Promise<void>
) {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array);
}
}