Skip to content

Instantly share code, notes, and snippets.

View bhalothia's full-sized avatar
🛠️
Building something cool. ;)

Virendra Singh Bhalothia bhalothia

🛠️
Building something cool. ;)
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# David Lutz's Multi VM Vagrantfile
# inspired from Mark Barger's https://gist.github.com/2404910
boxes = [
{ :name => :web, :role => 'web_dev', :ip => '192.168.33.1', :ssh_port => 2201, :http_fwd => 9980, :cpus =>4, :shares => true },
{ :name => :data, :role => 'data_dev', :ip => '192.168.33.2', :ssh_port => 2202, :mysql_fwd => 9936, :cpus =>4 },
{ :name => :railsapp, :role => 'railsapp_dev', :ip => '192.168.33.3', :ssh_port => 2203, :http_fwd => 9990, :cpus =>1}
]
@bhalothia
bhalothia / Deleting Amazon EBS Volume
Last active August 29, 2015 14:01
Deleting an Amazon EBS Volume while terminating an EC2 instance
When we create an EC2 instance it uses EBS volume. By default settings, the EBS volume doesn't get deleted when you terminate the instance and keep on burning dollars.
DELETE IT!! Check the option to delete it once the instance is terminated.
Also, start tagging all of your AWS resources to make it easier when you search for them...and create metrics reports.
@bhalothia
bhalothia / Setting up Nagios on Centos
Created May 18, 2014 23:43
Monitoring your infra!
A very well explained article on setting up Nagios.
http://www.unixmen.com/install-and-configure-nagios-in-centos-6-4-rhel-6-4/
@bhalothia
bhalothia / RootConf2014 Bangalore
Created May 12, 2014 19:54
Topics covered in workshop and my take on em
Workshop:
-> Introduction to Go Continuous Delivery Software -- ThoughtWorks pitching in it's paid tool.
-> Linux containers (LXC) and future of software delivery -- Getting a lot of attention, perhaps due to Docker
-> SELinux for the Uninitiated -- Interesting...why would I choose to enable SELinux? Personally I end up disabling it each time. :)
-> Continuous deployment with Fabric -- Couldn't figure out what was the ISP..Chef offers it already and a lot more. [http://www.slideshare.net/tanihito/automated-deployment-with-fabric]
-> Continuous Delivery using Jenkins - Jenkins is an aswesome tool..create as a CI tool but easily extendible to CD as well.. my own presentation from few months back [http://www.slideshare.net/bhalothia/jenkins-a-complete-solution]
@bhalothia
bhalothia / S3CMD
Created May 10, 2014 14:05
Command line tool for managing Amazon S3 and CloudFront services
S3cmd tool for Amazon Simple Storage Service (S3)
=================================================
S3cmd is a free command line tool and client for uploading,
retrieving and managing data in Amazon S3 and other cloud
storage service providers that use the S3 protocol, such as
Google Cloud Storage or DreamHost DreamObjects. It is best
suited for power users who are familiar with command line
programs. It is also ideal for batch scripts and automated
backup to S3, triggered from cron, etc.
@bhalothia
bhalothia / Private on premise Git Server
Created May 8, 2014 12:25
Installing a private on premise git server for your organization
Following this article:
http://thealarmclocksixam.wordpress.com/2013/01/06/git-repo-tutoria/
http://www.saintsjd.com/2011/01/what-is-a-bare-git-repository/
http://git-scm.com/book/en/Git-on-the-Server-Setting-Up-the-Server
# SSH Server configuration
The machine that will host the git repository needs to be accessed by clients. A possible way to access a machine remotely is through SSH.
I would like to list out some of the points that differentiates GIT from SVN as a Version Control tool.
1. Basic difference between the above mentioned tools are that SVN is a Centralized and GIT is a Distributed version control tool.
2. Commit happens atomic in nature for SVN where as for GIT it's more like file versioning happens with every commit.
3. GIT versions by storing the contents of the files for tracking history where as in SVN the basic data storage is done by creating a differences between the individual files for each change.
4. GIT stores every changes in any of its sub-directories of its project structure within the .git folder that gets created only on the parent folder of the project structure where the git initialized a new git repository where as in SVN the .svn will be created in every sub-directories within the project structure to store the metadatas of each and every file and folder.
@bhalothia
bhalothia / Find a file on Linux
Last active August 29, 2015 14:01
Find a file on Linux command line
Let's say, you want to search 'file.txt' Go the directory where you want to search.
$ cd 'dir_path'
$ find . -name 'file.txt'
For detailed tutorial: http://content.hccfl.edu/pollock/unix/findcmd.htm
@bhalothia
bhalothia / Dash-boarding Cloud Metrics
Last active August 29, 2015 14:01 — forked from textarcana/README.md
Monitoring dashboards on cloud
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. **tl;dr: womm, ymmv, yolo.**
I (mostly) followed the steps shown in the [EZUnix wiki](http://www.ezunix.org/index.php?title=Install_statsd_and_graphite_on_CentOS_or_RHEL)
And I also referred back to [this gist by Michael Grace](http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/)
@bhalothia
bhalothia / Pushing data to S3 buckets
Created May 6, 2014 13:39
This is for pushing data to S3 buckets
Pre requisites - s3cmd installation and configuration (http://s3tools.org/s3cmd)
$ s3cmd put <folder_needs_to_be_pushed> s3://<bucket_name> --recursive