Skip to content

Instantly share code, notes, and snippets.

View RichardSilveira's full-sized avatar
🚀

Richard Silveira RichardSilveira

🚀
View GitHub Profile
exports.mys3UpdaloadEventhandler = async (event, context) => {
console.log('event', event);
console.log('context', context);
const bucket = event.Records[0].s3.bucket.name;
console.log('bucket', bucket);
const key = decodeURIComponent(event.Records[0].s3.object.key.replace(/\+/g, ' '));
try {
SELECT
truck_id,
fleet,
fuel_capacity,
model,
load_capacity,
make,
measure_name
FROM "sampleDB".IoT
GROUP BY truck_id, fleet, fuel_capacity, model, load_capacity, make, measure_name
@RichardSilveira
RichardSilveira / WarnUpFunctionCloudFormationResource.yml
Created November 14, 2020 12:19
Event Rule to warn up a lambda function
WarnUpFunctionXXX:
Type: "AWS::Events::Rule"
Properties:
ScheduleExpression: cron(0/10 10-01 * * ? *)
Name: WarnUpFunctionXXX
State: ENABLED
RoleArn: arn:aws:iam::644846694994:role/my-role
Targets:
- Arn: !GetAtt XXXLambdaFunction.Arn
Id: "TargetWarnFunctionXXX"
@RichardSilveira
RichardSilveira / ContextCmder-Disable.reg
Created April 6, 2021 22:09 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]