Skip to content

Instantly share code, notes, and snippets.

@gleguizamon
gleguizamon / withCognito.tsx
Created January 25, 2024 00:29
AWS Cognito SDK v3 Auth HOC example
// @ts-nocheck
import { useNavigate } from 'react-router-dom';
import {
CognitoIdentityProviderClient,
InitiateAuthCommand,
InitiateAuthCommandInput,
RespondToAuthChallengeCommand,
RespondToAuthChallengeCommandInput
} from '@aws-sdk/client-cognito-identity-provider';
import Cookies from 'js-cookie';
@gleguizamon
gleguizamon / git.md
Created January 23, 2024 19:11 — forked from stevemar/git.md
git cheatsheet

GitHub Enterprise

Clone all GHE repos

This is limited to cloning 100 repos at a time, the second command gets page 2

TOKEN=foo
ORG_NAME=developer-journey
COMPANY=IBM
@gleguizamon
gleguizamon / settings.json
Last active August 2, 2023 22:54
last vscode config
{
"editor.bracketPairColorization.enabled": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontSize": 15,
"editor.fontFamily": "'Cascadia Code PL', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true,
"editor.inlineSuggest.enabled": true,
"editor.minimap.enabled": false,
"editor.suggest.preview": true,
"files.autoSave": "afterDelay",