Last active
November 20, 2018 23:05
-
-
Save jay-johnson/71a0899be858411c3976745776f74002 to your computer and use it in GitHub Desktop.
Bash Aliases for https://github.com/AlgoTraders/stock-analysis-engine
This file contains 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
alias t='pushd /opt/sa && source /opt/venv/bin/activate && py.test --maxfail=1 && flake8 . && pycodestyle . && popd' | |
alias lsprice='source /opt/venv/bin/activate && aws --endpoint-url http://localhost:9000 s3 ls s3://pricing' | |
alias lsbucket='source /opt/venv/bin/activate && aws --endpoint-url http://localhost:9000 s3 ls' | |
use_aws() { | |
export S3_ACCESS_KEY=ACCESS | |
export S3_SECRET_KEY=SECRET | |
export S3_ADDRESS=s3.us-east-1.amazonaws.com | |
export S3_BUCKET=BUCKET_NAME | |
export S3_REGION_NAME=us-east-1 | |
export S3_SECURE=0 | |
export AWS_ACCESS_KEY_ID=${S3_ACCESS_KEY} | |
export AWS_SECRET_ACCESS_KEY=${S3_SECRET_KEY} | |
} | |
use_minio() { | |
export S3_ACCESS_KEY=trexaccesskey | |
export S3_SECRET_KEY=trex123321 | |
export S3_REGION_NAME=us-east-1 | |
export S3_ADDRESS=home1.example.com:9000 | |
export AWS_ACCESS_KEY_ID=${S3_ACCESS_KEY} | |
export AWS_SECRET_ACCESS_KEY=${S3_SECRET_KEY} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment