This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for completeFilename in ./*.mp4; do | |
filename=$(basename "$completeFilename") | |
f="${filename%.*}" | |
echo $f | |
ffmpeg -y -i "$filename" -vf palettegen palette.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AWS = require('aws-sdk'); | |
const docClient = new AWS.DynamoDB.DocumentClient({ region: 'eu-west-1' }); | |
const getAllItemFromTable = async (table) => { | |
let ExclusiveStartKey; | |
let items = []; | |
do { | |
const params = { TableName: table }; | |
if (ExclusiveStartKey) { | |
params.ExclusiveStartKey = ExclusiveStartKey; |