I hereby claim:
- I am michaelwittig on github.
- I am michaelwittig (https://keybase.io/michaelwittig) on keybase.
- I have a public key ASA0Z_YOphx6BNo_fnVk1ws7F05Y3k0RkxLUFZFEsG7FnQo
To claim this, I am signing this object:
function zipFile(lambdaFile) { | |
return esbuild.buildSync({ | |
entryPoints: [`lambda/${lambdaFile}`], // your path might be different | |
external: ['@aws-sdk/*'], | |
target: ['node18'], | |
platform: 'node', | |
bundle: true, | |
write: false, | |
treeShaking: true | |
}).outputFiles[0].text; |
// dependencies | |
// npm i yaml-cfn | |
// npm i jest-diff | |
// usage: node cfn-template-diff.js a.yaml b.yaml | |
const {yamlParse} = require('yaml-cfn'); | |
const {readFileSync} = require('node:fs'); | |
const {diff} = require('jest-diff'); |
#!/bin/bash | |
# | |
# Script to convert MP4 video to GIF with generation of custom color palette. | |
# | |
#=== Do not touch code below | |
# Inner variables | |
input_file="" | |
input_fps="20" | |
input_height="512" |
// script | |
import { | |
DynamoDBClient, | |
UpdateItemCommand, | |
paginateScan | |
} from '@aws-sdk/client-dynamodb'; | |
async function updateItem(dynamodb, id) { | |
return dynamodb.send(new UpdateItemCommand({ | |
TableName: 'table-name', |
I hereby claim:
To claim this, I am signing this object:
var MAX_CONCURRENT_API_CALLS = 12; | |
var BUCKET = "bucket-name"; | |
var AWS = require("aws-sdk"); | |
var s3 = new AWS.S3(); | |
var async = require("async"); | |
var queue = async.queue(function(task, cb) { | |
console.log(task.action); | |
if (task.action === "list") { |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "1", | |
"Effect": "Allow", | |
"Action": [ | |
"sts:AssumeRole" | |
], | |
"Resource": "*", |