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
yaxhpal / chef-server-12-install.sh
Last active January 21, 2018 21:03
Install Chef Server 12 on AWS EC2 (Redhat Enterprise Linux)
#!/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
@yaxhpal
yaxhpal / keybase.md
Created April 16, 2019 15:26
Keybase Proof

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 / boto3-s3-flask-stream.py
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')