How To Force SSL for Tomcat with AWS ELB in Front

The problem You have an awesome Java app that is growing like crazy and you need to be on top of it. You will start spawning servers to scale horizontally and putting a reliable balancer in front. AWS ELB is a good one but it will not solve all your needs out of the box. ...

How to Copy all the Jenkins Jobs programmatically

We are moving our projects from dev to qa and production. It is kind of painful to redo all jobs in jenkins or copy them individually. So using the scripting capabilities of Jenkins (groovy) we can copy the jobs with a new name and move them if you want to another view. import hudson.model.* def ...

Track Functionality Usage With Splunk

I have been playing lately with Splunk and let me tell you… WOW! Awesome tool. You can have N servers forwarding logs to a main server where you can search using SPL to query all over those inputs. Here I will demostrate how to make a simple stat usage of your website that you can ...

How To Use GSON To Parse Dates for MongoDB

Working with MongoDB is really cool. Is easy to setup and use any API in pretty much any programming lang out there. When you work in Java like me you will have a few challenges. First of all what I hate from Java and love from NodeJS is the dynamic creation of objects using directly ...

How to mount a serial USB in linux

First of all you have to check if the device is connected to the system lsusb The output will be something like Bus 002 Device 006: ID 046d:c05a Logitech, Inc. M90/M100 Optical Mouse Bus 002 Device 005: ID 046d:081b Logitech, Inc. Webcam C310 Bus 002 Device 004: ID 046d:0a0b Logitech, Inc. ClearChat Pro USB Bus ...