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
#!/usr/bin/env zsh | |
autoload -U colors | |
if [[ -z $1 ]]; then | |
read "database_name?Databse Name: " | |
else | |
database_name=$1 | |
fi |
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
### Keybase proof | |
I hereby claim: | |
* I am cwood on github. | |
* I am cwood (https://keybase.io/cwood) on keybase. | |
* I have a public key whose fingerprint is 5EEF 1B67 0422 73B4 BB59 E897 BD0A 9EF6 1073 C427 | |
To claim this, I am signing this object: |
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/zsh | |
autoload -U colors && colors | |
if [[ -z $1 ]]; then | |
read "upgradePackage?Which pacakge to upgrade? " | |
else | |
upgradePackage=$1 | |
fi | |
VIRTUALENV_INSTALLS="/var/virtualenvs" |
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 | |
SALTMINIONS=$(sudo salt-key -L | grep -v "Rejected:" | grep -v "Accepted Keys:" | grep -v "Unaccepted Keys:") | |
echo -n "Remote hosts [sudo] password: " | |
read -s remote_password | |
echo | |
for minion in $SALTMINIONS | |
do |