Creating new hosts for Apache2

on Feb 10, 2013 in Bash

Although creating a new host is not so difficult problem I wrote simple bash script to automate this task. So instead of running several commands in terminal you can simply execute one bash script.

Script will prompt you to input new host name and that's it. You will just need to change desired path to directory where you want the host to be created.

Bash + Google Closure Compiler

on Jan 04, 2013 in Bash, Closure compiler, Projects

Usually when the project is ready for production developer needs to minimize sourse files in order to reduce download time and save bandwidth. There are a number of perfect compressors which can significantly lower the file sizes.

The following bash script is a simple tool I use to get my project ready for the live. You run the script with the list of names of javascript files you want to include into resulting buildscript, and in the end you get all this files compiled and appended to the one resulting file.