GlusterFS fix faulty bricks

Great tutorial to manage glusterFS


if you are getting error like

volume add-brick: failed: Incorrect number of bricks supplied 1 with count 2

Then you are trying to add  distribute leg, which requires multiple bricks based on replication setting, try following command

gluster vol add-brick <vol-name> <brick1><brick2>


NMAP TLS/SSL cipher suites a particular website offers

List the SSL/TLS cipher suites a particular website offers

 Command Line

Nmap with ssl-enum-ciphers 

This will be a very simple and and  faster way to get a list of available ciphers from a network service.  and nmap will provide a strength rating of strong, weak, or unknown for each available cipher. Which will help to determine overall strength of server security.

nmap --script ssl-enum-ciphers -p 443

To install nmap on osx run : brew install nmap


sslscan is a also nice little utility to get details regarding website ssl.
To install on osx run : brew install sslscan

Online Tool

SSL Labs‘ website also have good tool to test tls/ssl ciphers and other utility.

Source :


OpenSSH 7.3 on CentOs 6.7

A simple script to upgrade OpneSSH on CentOs 6.7.

To use you can run following command with root user

bash <( curl -s ) 

AWS S3 Sync using Crontab

  1. Install AWS cli
    #Download cli script
    curl "" -o ""
    ./awscli-bundle/install -b ~/bin/aws
  2. Create crontab script file :
    export AWS_CONFIG_FILE="/root/.aws/config" #change it as per user
    /usr/local/bin/aws s3 sync /var/www/ s3://my-imagestore/ --acl=public-read --debug
  3. Add crontab to sync s3 folder every 5 min : crontab -e
    */5 * * * * /bin/bash /root/ >> /tmp/sync-s3.log

How to add Swap on ubuntu