Skip to content

Instantly share code, notes, and snippets.

```
Resources:
57 unchanged
I0831 11:13:28.159017 48347 eventsink.go:62] eventSink::Debug(<{%reset%}>I0831 11:13:27.974850 48703 provider2.go:948] normalizeBlockCollections: repl
acing a nil list with an empty list because the underlying TF property is a block %s, %sdeployment_configuration{{{} map[bake_time_in_minutes:{{{} 83}} li
fecycle_hook:{{{} {{{} map[hook_target_arn:{{{} 83}} lifecycle_stages:{{{} {{{} 83}}}} role_arn:{{{} 83}}]}}}} strategy:{{{} 83}}]}}
<{%reset%}>)
I0831 11:1
3:28.159191 48347 eventsink.go:59] I0831 11:13:27.974858 48703 provider2.go:954] normalizeBlockCollections: replacing a nil set with an empty set beca
use the underlying TF property is a block %!s(MISSING), %!s(MISSING)capacity_provider_strategy
@jay-babu
jay-babu / worldpay_transformity.yml
Last active September 16, 2024 00:13
Worldpay Transaction Spec - Transformity Fixes
swagger: '2.0'
info:
title: triPOS Transaction API
version: 4.3.5
host: triposcert.vantiv.com
basePath: /
schemes:
- https
paths:
/api/v1:
openapi: 3.0.2
x-stoplight:
id: c6861590dda46
info:
title: Finix API
description:
$ref: api-descriptions/main.md
contact:
name: Finix
url: https://finix.com
@jay-babu
jay-babu / useful.sql
Created April 17, 2024 16:37
Useful SQL Commands
-- table size, index size, total size
SELECT
table_name,
pg_size_pretty(table_size) AS table_size,
pg_size_pretty(indexes_size) AS indexes_size,
pg_size_pretty(total_size) AS total_size
FROM (
SELECT
table_name,
pg_table_size(table_name) AS table_size,

jq -r ".accessToken" ~/.aws/sso/cache/10c4f2dbd6011f68dc44925dcadadae57ef918c1.json

aws sso get-role-credentials --role-name AdministratorAccess --account-id 260558796113 --access-token

diff --git a/shell/.config/nvim/lua/user/lsp/on_attach.lua b/shell/.config/nvim/lua/user/lsp/on_attach.lua
index 256cae8..646103a 100644
--- a/shell/.config/nvim/lua/user/lsp/on_attach.lua
+++ b/shell/.config/nvim/lua/user/lsp/on_attach.lua
@@ -5,4 +5,14 @@ return function(client, bufnr)
inlayhints.on_attach(client, bufnr)
end
end
+
+ if client.name == "jdtls" then
@jay-babu
jay-babu / idealImplShapes.go
Created October 4, 2022 02:26
SOLID: Open-Closed Principle `ideal`
package main
import (
"fmt"
"math"
)
type geometry interface {
// Area of a shape
area() float64
@jay-babu
jay-babu / badImplShapes.go
Created October 4, 2022 01:57
SOLID: Open-Closed Principle `bad`
package main
import (
"fmt"
"math"
)
type badRect struct {
Width, Height float64
}
@jay-babu
jay-babu / idealImplCustomer.go
Created September 30, 2022 01:58
Single Responsibility Principle `idealImpl`
package main
import (
"encoding/json"
"fmt"
)
type CustomerInfo interface {
Name() string
Address() string
@jay-babu
jay-babu / badImplCustomer.go
Last active September 30, 2022 01:57
Single Responsibility Principle `badImpl`
package main
import "fmt"
type badImplCustomer struct {
Name string
Address string
Order int
OrderComplete bool
}