Skip to content

Instantly share code, notes, and snippets.

View yaxhpal's full-sized avatar
Working from home

Yashpal Meena yaxhpal

Working from home
View GitHub Profile
yaxhpal /
Last active June 8, 2020 21:54
Stream AWS S3 Files using Boto3
# Demonstration only
from flask import current_app as app, Response
import boto3 # boto3==1.13.25
import botocore # botocore==1.16.25
CHUNK_SIZE = 256*1024 # 256kb
def get(a_bucket, a_file)
s3 = boto3.client('s3')
yaxhpal /
Created April 16, 2019 15:26
Keybase Proof

Keybase proof

I hereby claim:

  • I am yaxhpal on github.
  • I am yashpalmeena ( on keybase.
  • I have a public key ASCRPcrN8Mi_yxj51i1xxjI89tUk3CjPE4lESGUV5JAD_go

To claim this, I am signing this object:

yaxhpal /
Last active January 21, 2018 21:03
Install Chef Server 12 on AWS EC2 (Redhat Enterprise Linux)
cd /tmp
# Download the Chef server Lastest RPM
sudo wget
# Install the chef server
sudo rpm -Uvh tmp/chef-server-core-12.17.15-1.el7.x86_64.rpm
# Configure - Run setup