Today I tested the amazing Lambda and I was able to automaticly process images, generating thumbnails by just copying an image into a S3 bucket. I followed the Walkthrough at http://docs.aws.amazon.com/lambda/latest/dg/walkthrough-s3-events-adminuser-create-test-function-create-function.html But had few steps to do not listed there: […]
AWS save money spot instances
When you have any process that listen to a SQS queue, in most case it a good case for SPOT instance to come into play and save you lots of money. In our infra, we had a AS group that […]
AWS Cloud Watch bash script
This script was written by me a while back (still has an old version of the CLI) I found a minor bug, when using non integer values (decimal values) causes a problem, bash does not handle it very well. Anyone […]
Solr Index Command
Not sure if there is another better way to do it. But I wrote this script to perform full or delta imports. more details http://wiki.apache.org/solr/DataImportHandler #!/bin/bash # script to index Solr # by Felipe Ferreira Sept 2013 TYPE=$1 DATE=`date +%d_%m_%y` […]
How to find what process are using Swap
How to find what process are using Swap /proc/meminfo – This file reports statistics about memory usage on the system. It is used by free to report the amount of free and used memory (both physical and swap) on the […]
varnishadm ban
When cleaning the cache on varnish 3.0 there is a way to only ban the specific host. The command is: varnishadm -T localhost:1234 ban req.http.host ~ “site.com” && req.url ~ “/path”
How to get varnish client.ip behind ELB
How to get varnish client.ip behind ELB I needed to filter access by IP using varnish acl, but when your varnish is behind a Amazon ELB Load Balancer, by default it doesn’t work, so here is the solution! Tested using […]
