AWS : Change Time Zone.

date
Wed Jan 4 22:07:58 TLT 2012
You have new mail in /var/spool/mail/root

# mv /etc/localtime /etc/localtime.bak
# ln -s /usr/share/zoneinfo/Asia/Calcutta /etc/localtime
# date

Extract Files

Type tar -xvf yourfile.tar to extract the file to the current directory.

Download Image in React From URL locally

function downloadImageFromURL(imageUrl) {
  if(imageUrl != null) {
      let imageData = imageUrl.split('/');
      let tempCount = imageData.length;
      let imageName = imageData[tempCount-1];
     
      axios({
        url: imageUrl,
        method: 'GET',
        responseType: 'blob',
      }).then((response) => {
        const url = window.URL.createObjectURL(new Blob([response.data]));
        const link = document.createElement('a');
        link.href = url;
        link.setAttribute('download', imageName);
        document.body.appendChild(link);
        link.click();
      });
  }
}