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 | |
| # MIRIX Bastion Setup Script | |
| # Quick setup script for running MIRIX database operations on an AWS bastion host | |
| # Author: Your Name | |
| # Usage: curl -sSL https://gist.githubusercontent.com/L-u-ke/fca46bf5881a161822776f13eb0e75bf/raw | bash | |
| set -e | |
| echo "==================================================" | |
| echo "MIRIX Bastion Setup Script" |
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
| // ctrl + shift + F | |
| ^.*\S+.*$ |
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/sh | |
| # from http://stackoverflow.com/questions/1471571/how-to-configure-postgresql-for-the-first-time | |
| # | |
| # debian jessie | |
| # PostgreSQL 9.3 | |
| sudo apt-get install postgresql postgresql-client | |
| # connect to standard system database template1 |