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
| |____all_aws | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars | |
| | | |____all | |
| | |____shared | |
| |____development | |
| | |____ec2.ini | |
| | |____ec2.py | |
| | |____group_vars |
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
| # If we're in a git repo, print the first 9 characters of the current committish. | |
| function parse_git_commit() { | |
| git rev-parse HEAD 2>/dev/null | cut -c1-10 | |
| } | |
| # If we're in a git repo, print the current branch name. The sed call deletes | |
| # any line not starting with '* ', then removes the '* ' | |
| function parse_git_branch () { | |
| git rev-parse --abbrev-ref HEAD 2>/dev/null | |
| } |
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
| #!/bin/bash | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 options | |
| This script set ownership for all table, sequence and views for a given database | |
| Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto |
NewerOlder