This is a robust script that backups all instances that have a TAG, Backup=TRUE it generates a AMI images, and snapshots of each Volume, also a nice e-mail with a HTML table nice format. It also prints a BackupExpiration TAG, […]
AWS Lambda
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 […]
android 4.4.4 how to hard reset factory moto g
To hard reset the Motorola Moto G Android 4.4.4 Make sure the phone has over 50% of battery, remove the SIM card 1-Press Volume- and Power for 4 seconds 2-When you see Menu use Volume- to Recovery press Volume+ to […]
