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
#!/bin/bash | |
# replace origin/master branch with a local branch named as 'otherbranch', with force. | |
git push origin otherbranch:master -f | |
# list remote branch | |
git remote -v | |
# replace remote branch with another remote branch | |
git remote set-url origin https://github.com/USERNAME/REPOSITORY.git |
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
import boto3 as boto | |
# variables | |
key = 'product.csv' | |
file_path = 'product.csv' | |
bucket_name = 'bucket_name' | |
# init aws | |
client = boto.client('s3') |