Skip to content

Instantly share code, notes, and snippets.

@nehiljain
Created May 30, 2022 19:35
Show Gist options
  • Save nehiljain/6948ec465ac9d59da8e73448871791ba to your computer and use it in GitHub Desktop.
Save nehiljain/6948ec465ac9d59da8e73448871791ba to your computer and use it in GitHub Desktop.
#! /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"
@nehiljain
Copy link
Author

To run it
curl -sL https://gist.githubusercontent.com/nehiljain/6948ec465ac9d59da8e73448871791ba/raw/97cb77209f648de2d1f14afac482eac370804298/david_run.sh | sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment