Created
May 30, 2022 19:35
-
-
Save nehiljain/6948ec465ac9d59da8e73448871791ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env sh | |
DIR=$(dirname "$0") | |
cd "$DIR" | |
echo $DIR | |
[ -d temp-dco ] && rm -rf temp-dco | |
git clone https://github.com/nehiljain/data-cost-optimizer.git temp-dco | |
cd "$DIR/temp-dco" | |
python3 -c 'import sys; assert sys.version_info >= (3,6)' | |
python3 -m venv venv | |
pip3 install -r requirements.txt | |
cp .env.example .env | |
echo '\n\nWe are all set!!\n\nFollow the two steps\n' | |
echo "1) Please enter the values in $DIR/temp-dco/.env." | |
echo "2) Then run python3 query_history_extractor.py" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run it
curl -sL https://gist.githubusercontent.com/nehiljain/6948ec465ac9d59da8e73448871791ba/raw/97cb77209f648de2d1f14afac482eac370804298/david_run.sh | sh