Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Yashpal Meena yaxhpal

🏠
Working from home
View GitHub Profile
@yaxhpal
yaxhpal / boto3-s3-flask-stream.py
Last active Jun 8, 2020
Stream AWS S3 Files using Boto3
View boto3-s3-flask-stream.py
# 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')
View keybase.md

Keybase proof

I hereby claim:

  • I am yaxhpal on github.
  • I am yashpalmeena (https://keybase.io/yashpalmeena) on keybase.
  • I have a public key ASCRPcrN8Mi_yxj51i1xxjI89tUk3CjPE4lESGUV5JAD_go

To claim this, I am signing this object:

@yaxhpal
yaxhpal / chef-server-12-install.sh
Last active Jan 21, 2018
Install Chef Server 12 on AWS EC2 (Redhat Enterprise Linux)
View chef-server-12-install.sh
#!/bin/bash
cd /tmp
# Download the Chef server Lastest RPM
sudo wget https://packages.chef.io/files/stable/chef-server/12.17.15/el/7/chef-server-core-12.17.15-1.el7.x86_64.rpm
# Install the chef server
sudo rpm -Uvh tmp/chef-server-core-12.17.15-1.el7.x86_64.rpm
# Configure - Run setup