Pages - Menu

Getting Started with Vagrantfile

Now a days laptop hardware is becoming better and better day by day and the softwares like VirtualBox are making our laptops a perfect development environment. The good news is softwares like Vagrant are taking one step further to really deliver the development environment in much more efficient and automated way. Here is my first Vagrantfile that I created few months ago, if you are getting started with Vagrant then I think you will find this Vagrantfile useful,

Link: https://gist.github.com/sumit-goel/a9cb8c4c7fa08608c293

Place this Vagrantfile in a directory and run command vagrant up in the same directory. Please install the Vagrant from www.vagrantup.com if vagrant command is not available.

This Vagrantfile will create a CentOS 6.6 virtual machine using VirtualBox hypervisor and also configure few things like web server port forwarding, NAT, hostname and etc.

Any feedback will be highly appreciated.

Sample VIM Run Commands File (.vimrc)

I use VIM (advanced text editor) for writing scripts or short programs and I love it. All the cool features of VIM can be found at www.vim.org. Here is the simple/sample VIM run commands file also known as .vimrc file that you may find useful,

Link: https://gist.github.com/sumit-goel/4ce334ba6b1655bfd530

Place the file in your home directory and it will enable following capabilities for you,
  1. Enable the ruler
  2. Set dark background
  3. Highlight the search text
  4. Enable the line numbers
  5. Color the column 75
  6. Set the tab size to 4 columns
  7. Convert tabs to spaces
  8. Highlight syntax
  9. Automatic indentation
  10. Remember the last cursor position

Please do let me know via comments what other things you have in your .vimrc file. Any feedback will be highly appreciated.

Bash Shell Script to Monitor Website Uptime

I was in a need to monitor the website up time on temporary basis so I decided to write a simple bash shell script to monitor the website up time and ran the script via cron every minute on my Ubuntu 14.04.2 LTS machine. If you are in a similar need then feel free to make use of it. The script can be found at,

Link: https://gist.github.com/sumit-goel/d7930c20225acb7e3e11

Please make sure to update your notification email address in line 26 of the script. Also, -S smtp=<relay-host> is optional so feel free to remove it if you don't need to specify SMTP server.

Any feedback will be highly appreciated.