Controlling Multiple Linux Boxes at Once

For running a few commands to multiple boxes

find . -iname “*myfile*”

grep -iR “mytext” *

Of course, Puppet or Chef is a better option.    Or just use AWS ElasticBeanStalk or CloudFoundry.

Microservices, Devops, Scala, Akka, Spring Boot and more…

Spring Boot Microservices



New Open Source From IBM

NodeJS Metrics

Agentless System Crawler

DevOps Report

Scala / AKKA

Everything about Tor


Java 8

Redis Speed Burn

Redis commands per second

Improve performance with Twemproxy or dynomite

Mac Ulimit


Test Data and Generated Data    <–  nice one   <- really but they receive email

QuickHit: Check Mail Checking from AWS EC2 with JavaMail

To avoid having to install maven or gradle or specialized tools, we just put in a simple class and shell script.    First download the mail jars you need from here.   A simple wget will work on the links.  Keep them in the same dir as the .java and you can use the shell script below.   Real quick and dirty, but works for testing if your local EC2 instance can send email and there’s no firewall or other issues.

import javax.mail.Address;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import java.util.Properties;

try { Properties props = System.getProperties();
                props.put("", "localhost");
                props.put("mail.debug", "true");
                Session session = Session.getDefaultInstance(props, null);
                Transport transport = session.getTransport("smtp");
                MimeMessage message = new MimeMessage(session);
                Address fromAddress = new InternetAddress("root@localhost.localdomain");
                InternetAddress to = new InternetAddress("");
                message.addRecipient(Message.RecipientType.TO, to);
                message.setSubject("Test Mail");
                message.setText("Test Body");
                transport.connect(host, from);
            } catch (Exception x) {

javac -cp imap-1.5.4.jar:javax.mail.jar:smtp-1.5.4.jar
java -cp imap-1.5.4.jar:javax.mail.jar:smtp-1.5.4.jar:. MailCheck

Setup Jenkins and DevTools on Ubuntu on AWS EC2


Install Git, Java7, Java 8 and Maven

sudo apt-get install git

sudo apt-add-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

sudo apt-get install oracle-java7-installer

sudo apt-get install oracle-java8-set-default

sudo apt-get install maven


Install Jenkins

sudo wget -q -O – | sudo apt-key add –
sudo sh -c ‘echo deb binary/ > /etc/apt/sources.list.d/jenkins.list’
sudo apt-get update
sudo apt-get install jenkins


Install MongoDB

sudo apt-key adv –keyserver hkp:// –recv 7F0CEB10

echo “deb “$(lsb_release -sc)”/mongodb-org/3.0 multiverse” | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list

sudo apt-get update

sudo apt-get install -y mongodb-org

sudo apt-get install -y mongodb-org=3.0.4 mongodb-org-server=3.0.4 mongodb-org-shell=3.0.4 mongodb-org-mongos=3.0.4 mongodb-org-tools=3.0.4

sudo service mongod start

sudo tail -5000 /var/log/mongodb/mongod.log


Install Postgresql

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib


Install Redis

sudo apt-get install build-essential

sudo apt-get install tcl8.5

sudo wget

sudo tar xzf redis-stable.tar.gz

cd redis-stable


make test

sudo make install

cd utils

sudo ./

sudo service redis_6379 start


Install Scala

sudo wget

sudo dpkg -i scala-2.11.7.deb


Install SBT and Gradle

echo “deb /” | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-get update
sudo apt-get install sbt

install typesafe activator

sudo wget


sudo apt-get install unzip

curl -s | bash

source “/root/.gvm/bin/”

gvm install gradle



Setup back for jenkins




Add 8080 to all same ports as 80




AWS Summit 2015 Slides of Interest

AWS Security

Cost Optimization


AWS EC2 Contianers (DOCKER)

Introduction to EC2



AWS Elasticache

AWS Lambda