Skip to content

Instantly share code, notes, and snippets.

View pjanuario's full-sized avatar

Pedro Januário pjanuario

View GitHub Profile
@pjanuario
pjanuario / index.js
Created August 21, 2020 11:06 — forked from amiantos/index.js
Zip Multiple Files from S3 using AWS Lambda Function
// Lambda S3 Zipper
// http://amiantos.net/zip-multiple-files-on-aws-s3/
//
// Accepts a bundle of data in the format...
// {
// "bucket": "your-bucket",
// "destination_key": "zips/test.zip",
// "files": [
// {
// "uri": "...", (options: S3 file key or URL)
@pjanuario
pjanuario / analyze.rb
Last active December 31, 2015 15:49 — forked from ldmosquera/analyze.rb
Analyze redis keys patterns this was forked from previous script and updated
#!/usr/bin/env ruby
#usage: analyze.rb REDIS_PORT
#produces CSV with stats by key pattern
#ex: [foo:bar:123, foo:bar:234] -> foo:bar:ID
# development:hari:contest/log_entry#8a0b7edae8b965c9:log:in:contest
# development:hari:notification#24d1d025654c71e7:components
# development:rex:event#11570:traits
require 'rubygems'