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
#!/usr/bin/env bash -e | |
if [[ -z $1 ]]; then | |
echo; | |
echo "Usage: $0 <pantheon_site>"; | |
echo; | |
echo; | |
exit; | |
fi |
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
#!/usr/bin/env bash | |
if [[ -z $1 ]]; then | |
echo; echo "Usage: $0 <site.env>"; | |
echo; echo; | |
exit 1; | |
fi | |
# MacOS compatibility.... | |
if [[ "$OSTYPE" == *"darwin"* ]]; then |
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
#!/usr/bin/env bash | |
# Example usage: | |
# echo "select distinct type, count(*) from node group by 1 order by 2 desc;" > node_counts.sql | |
# ./query_all.sh node_counts.sql live | tee node_counts.txt | |
UPSTREAM='asdfasdf-asdf-asdf-asdf-asdfasdfasdf'; | |
# Check command line arguments | |
if [[ -z $1 ]]; then |
OlderNewer