Reverse Proxy Using Jetty/Undertow

Undertow is an extremely lightweight flexible performant web server written in java, providing both blocking and non-blocking API’s based on NIO. Jetty is another lightweight embeddable web server and servlet container. Any of these servers can be embedded in your java application easily. Both these servers provide proxy implementation which you can use to build a reverse proxy…

Read more Reverse Proxy Using Jetty/Undertow

Download artifacts from Jenkins using Shell script

Recently, I had to download files from a Jenkins server using shell scripts. Since Jenkins offers permanent urls to the latest stable artifacts along with a nice XML/JSON API, this can be done pretty easily and automated. Lets assume that your Jenkins server url is http://yourjenkins:8080 The details of the last successful build of your…

Read more Download artifacts from Jenkins using Shell script

Java and CAFEBABE

Open any Java class file in a hex editor and you will notice that it begins(the first four bytes) with the hex code CA FE BA BE. This is known as the magic number and the practice of starting the file with a specific byte sequence is quite common. This is just one of the several methods…

Read more Java and CAFEBABE

PHP/MySQL with Nginx

In the previous post, we discussed about setting up nginx on a Raspberry Pi. To serve dynamic content, a server side language like PHP and a database server like MySQL is essential. To execute the PHP scripts we will use PHP-FPM, which is a FastCGI implementation. To accelerate performance we will install Alternative PHP Cache(APC) also.…

Read more PHP/MySQL with Nginx

Nginx based streaming server on Raspberry Pi

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. Several web server softwares are available for Linux-based operating systems including Raspibian, a free operating system based on Debian optimized for the Raspberry Pi hardware. Its very easy to use any of these softwares to turn the Pi to a 24/7 portable…

Read more Nginx based streaming server on Raspberry Pi