Skip to content

Instantly share code, notes, and snippets.

@tanmaiaccion
tanmaiaccion / create_glue_partition.py
Created July 7, 2021 12:32 — forked from bvsubhash/create_glue_partition.py
Code Snippet of Lambda Function to add partitions into Glue Metadata Catalog using Boto3
import boto3
import urllib.parse
import os
import copy
def create_glue_partition_handler(event, context):
for record in event['Records']:
try:
source_bucket = record['s3']['bucket']['name']
@tanmaiaccion
tanmaiaccion / redirect-rule.js
Created September 2, 2020 20:08 — forked from nicosabena/redirect-rule.js
Redirect rule + webtask to do a reCaptcha after authentication
function (user, context, callback) {
// this rule requires the following configuration values:
// CAPTCHA_SECRET: a 32 bytes string that will be the shared secret between
// the rule and the webtask
// AUTH0_DOMAIN: your auth0 domain (e.g. account.auth0.com)
// CAPTCHA_REDIRECT: the URL for the webtask that will show and process CAPTCHA
// Put a specific client ID if you dont want CAPTCHA for every client
// if (context.clientID !== '[your client id]')
@tanmaiaccion
tanmaiaccion / ChiMerge.ipynb
Created May 5, 2020 14:17 — forked from alanzchen/ChiMerge.ipynb
ChiMerge implementation in Python 3.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.