AWS

WordPress Site via Docker using Data Container

Docker has gained a lot of attention these days. The main reasons which we know of are that it saves a lot of resources & one can have n number of environments within one server/machine. It being platform independent, is one more plus point for using docker & hence is one of the fastest growing […]

Technology

PHP5-FPM Logging

In this blog i will explain how to configure the access, error and slow logs of php-fpm and to modify the format in which the logs are received. Prerequisites: Lets have an application that uses the php5-fpm module, in this case, we will use the WordPress Application running on a LEMP stack. To enable the […]

AWSGrailsTechnology

AWS S3 file upload with progress bar using javascript sdk

You can upload files on AWS S3 using a server side solution, but in case of larger files it is advisable to use a client side solution. You can probably use JavaScript file upload feature of AWS S3. This is simple three step feature as described below: Step 1 : In the head section of your page include javascript sdk […]

Technology

Finding authors of all remote branches in a git repository.

Git is a widely adopted Version Control System known for its branching support. Recently I was required to find out all the remote branches with their author names. Upon browsing over the web I found that command git-for-each-ref can help me. Here is how I combined it with grep to get the desired output: [code] […]

AWS

AWS Elastic Beanstalk ( PHP Application )

In continuation to my previous Blog on Elastic Beanstalk (Grails Application) , I would now tell you how to deploy a PHP application via Elastic Beanstalk. So, again, we will quickly go through what AWS Elastic Beanstalk does. It is deploying your application in the AWS Cloud without worrying about the infrastructure & making your […]

GrailsTesting

Writing test cases for Domain class Using Spock

The agenda of this blog is to demonstrate how to write basic validation test cases for domain class in grails application. Create a domain class User with some basic constraints. [java] package com.ttn.testing class User { String emailId String name static constraints = { emailId nullable: false, blank: false name nullable: true, blank: false, minSize: […]

Sanchit
Sanchit
Read

AWSTechnology

Setting up Mcollective and puppet push from puppetmaster

This blog focusses on setting up Mcollective and puppet push-pull environment in open source puppet, configuration management tool. Puppet has a default behavior that agents pull their respective configurations (catalogs) at regular interval of time. The blog refers to certain use case where you don’t want an agent to make changes at their respective time […]

AWS

Apache Solr 5.1.0

Apache Solr is an open source search platform built upon a Java library called Lucene. Solr is a popular search platform for Web sites because it can index and search multiple sites and return recommendations for related content based on the search query’s taxonomy. Solr is also a popular search platform for enterprise search because […]

AWS

LOG ROTATION USING LINUX COMMAND-LINE UTILITY LOGROTATE

Let us consider a scenario when all the service and custom logs of your ubuntu server gets backed up on S3 on a daily basis after compressing them and the allocated space is freed without using any third party software. We can achieve this task by the use of logrotate utility provided by the ubuntu […]