Skip to content

Instantly share code, notes, and snippets.

@wcamarao
wcamarao / concurrency.go
Last active March 8, 2022 23:59
Golang concurrency
package main
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"time"
)
@wcamarao
wcamarao / iterm2.md
Last active March 9, 2022 00:00
Word jumping in iTerm2

Word jumping in iTerm2

Open Preferences > Profiles > Keys and configure shortcuts to Send escape sequences:

  • Option + Left: [1;5D
  • Option + Right: [1;5C

Given the following events

[
  {
    "Type": "UserCreated",
    "Payload": {
      "UserID": "a33cb19f",
      "Name": "Olivia"
 }
@wcamarao
wcamarao / review.tf
Created January 29, 2023 22:30
Review
data "aws_iam_policy_document" "github_actions" {
statement {
actions = ["sts:AssumeRoleWithWebIdentity"]
principals {
type = "Federated"
identifiers = [aws_iam_openid_connect_provider.github_actions.arn]
}
condition {
test = "StringEquals"