Skip to content

Instantly share code, notes, and snippets.

View yogeshwar-chaudhari-20's full-sized avatar
🎯
Focusing

Yogeshwar Chaudhari yogeshwar-chaudhari-20

🎯
Focusing
View GitHub Profile
@yogeshwar-chaudhari-20
yogeshwar-chaudhari-20 / dynamodb-migration-kit-(github)-infra-stack.ts
Last active September 7, 2024 20:12
CDK for creating AWS resources for running DynamoDB migrations using dynamodb-migration-kit NPM package
// Prerequisites / Reference
// https://aws.amazon.com/blogs/security/use-iam-roles-to-connect-github-actions-to-actions-in-aws/
import * as cdk from "aws-cdk-lib";
import { Construct } from "constructs";
import * as iam from "aws-cdk-lib/aws-iam";
export class InfrastructureStack extends cdk.Stack {
constructor(scope: Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
@yogeshwar-chaudhari-20
yogeshwar-chaudhari-20 / dynamodb-migration-kit.yaml
Created September 7, 2024 08:38
Github Actions workflow for DynamoDB migrations
name: DynamoDB Data Migrations
on:
workflow_dispatch:
inputs:
command:
description: "Command to run for Dynamo Data Migrations"
required: true
type: choice
options:
@yogeshwar-chaudhari-20
yogeshwar-chaudhari-20 / verify.apple.attestation.js
Created July 5, 2022 11:47 — forked from yackermann/verify.apple.attestation.js
Snippet code to verify apple anonymous attestation
const crypto = require('crypto');
const base64url = require('base64url');
const cbor = require('cbor');
const asn1 = require('@lapo/asn1js');
const jsrsasign = require('jsrsasign');
/* Apple Webauthn Root
* Original is here https://www.apple.com/certificateauthority/Apple_WebAuthn_Root_CA.pem
*/
let appleWebAuthnRoot = 'MIICEjCCAZmgAwIBAgIQaB0BbHo84wIlpQGUKEdXcTAKBggqhkjOPQQDAzBLMR8wHQYDVQQDDBZBcHBsZSBXZWJBdXRobiBSb290IENBMRMwEQYDVQQKDApBcHBsZSBJbmMuMRMwEQYDVQQIDApDYWxpZm9ybmlhMB4XDTIwMDMxODE4MjEzMloXDTQ1MDMxNTAwMDAwMFowSzEfMB0GA1UEAwwWQXBwbGUgV2ViQXV0aG4gUm9vdCBDQTETMBEGA1UECgwKQXBwbGUgSW5jLjETMBEGA1UECAwKQ2FsaWZvcm5pYTB2MBAGByqGSM49AgEGBSuBBAAiA2IABCJCQ2pTVhzjl4Wo6IhHtMSAzO2cv+H9DQKev3//fG59G11kxu9eI0/7o6V5uShBpe1u6l6mS19S1FEh6yGljnZAJ+2GNP1mi/YK2kSXIuTHjxA/pcoRf7XkOtO4o1qlcaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUJtdk2cV4wlpn0afeaxLQG2PxxtcwDgYDVR0PAQH/BAQDAgEGMAoGCCqGSM49BAMDA2cAMGQCMFrZ+9DsJ1PW9hfNdBywZDsWDbWFp28it1d/5w2RPkRX3Bbn/UbDTNLx7Jr3jAGGiQIwHFj+dJZYUJR786osByBelJYsVZd2GbHQu209b5
@yogeshwar-chaudhari-20
yogeshwar-chaudhari-20 / elastic.beanstalk.dev.cd.yml
Last active November 26, 2022 19:40
GitHub Actions Workflow Script to deploy to AWS EBS
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: elastic.beanstalk.dev CD
on:
push:
branches: [ develop ]
jobs: