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 | |
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd )" | |
# ----- defaults ----- | |
SOME_FLAG=false | |
# ----- arg parsing ----- | |
show_help(){ |
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 | |
# This script monitors an ENV specified log file for the provided TRIGGER_STRING, | |
# at which point, the final command is executed. | |
# TODO: USAGE: | |
TRIGGER_STRING=$1 | |
FINAL_CMD=$2 | |
# Where the host compose log file will be mounted within the container asynchronously waiting | |
CONTAINER_COMPOSE_LOG="$CONTAINER_LOG_DIR/$COMPOSE_LOG_FILE" |
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 | |
# | |
# Creates an SSH key on a client machine, applies the appropriate file permissions, | |
# copies to the local ~/.ssh directory, & copies to specified server | |
# | |
# parameters: | |
# ..1 newKeyFileName | |
# ..2 user@server | |
# | |
# usage : |
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 -e | |
# -e means exit if any command fails | |
DBHOST=address.to.your.server | |
DBUSER=username | |
DBPASS=password # do this in a more secure fashion | |
DBNAME=DBNAME | |
GITREPO=/where/is/your/repo | |
DUMP=$GITREPO/where/you/store/dumps | |
NEW=$DUMP/schema.sql | |
OLD=$NEW.old |
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
// env setup | |
sudo su | |
yum update | |
yum groupinstall 'Development Tools' | |
yum install openssl-devel | |
yum install git | |
// node install | |
git clone https://github.com/joyent/node.git | |
cd node |