Skip to content

Instantly share code, notes, and snippets.

@jay-babu
jay-babu / payrix.yml
Created September 19, 2024 01:53
Payrix
components:
schemas:
txnsCreateFields:
properties:
address1:
description: "The first line of the address associated with this Transaction.\
\ \nThis field is stored as a text string and must be between 1 and 500\
\ characters long."
type: string
address2:
@jay-babu
jay-babu / cohort.sql
Created September 13, 2024 15:13
Schema
create table cohort
(
id bigserial
primary key,
name text not null,
created_at timestamp with time zone default CURRENT_TIMESTAMP,
updated_at timestamp with time zone default CURRENT_TIMESTAMP
);
@jay-babu
jay-babu / gist:b61f3a86ba457d07848a908fe3343e6d
Created September 11, 2024 19:27
Sample TriPOS Response
{
"cashbackAmount": 0,
"approvedAmount": 1.06,
"convenienceFeeAmount": 0.00,
"subTotalAmount": 1.06,
"tipAmount": 0,
"fsaCard": "NotApplicable",
"isCardInserted": false,
"networkTransactionId": "242550142055564",
"creditSurchargeAmount": 0,
@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,
diff --git a/.github/ISSUE_TEMPLATE/pull_request_template.md b/.github/ISSUE_TEMPLATE/pull_request_template.md
new file mode 100644
index 0000000..a4210a8
--- /dev/null
+++ b/.github/ISSUE_TEMPLATE/pull_request_template.md
@@ -0,0 +1,32 @@
+### All Submissions:
+
+- [ ] Have you added authorization guards based on permission levels?
+- [ ] Is developer-facing telemtry added?
This file has been truncated, but you can view the full file.
openapi: 3.0.2
x-stoplight:
id: c6861590dda46
info:
title: Finix API
contact:
name: Finix
url: 'https://finix.com'
email: support@finixpayments.com

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