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
################################################################################ | |
# Command line processing | |
################################################################################ | |
# Parse the command line arguments. | |
while [ "$#" -gt "0" ]; do | |
case "$1" in | |
# TODO: Create some script options. | |
# EXAMPLE: Uncomment below to assign a 'destination directory', DST_DIR, |
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 | |
# Title: install-couchdb.sh | |
# Description: Installs the latest CouchDB version from source, | |
# not from a repository. | |
# Author: wraithmonster | |
# Reference: https://github.com/iriscouch/build-couchdb | |
# http://comments.gmane.org/gmane.comp.db.couchdb.user/16292 | |
# Uninstalling from Ubuntu's repository: | |
# http://serverfault.com/questions/348044 | |
# http://stackoverflow.com/questions/8783621 |
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 | |
# Title: install-node.sh | |
# Description: Installs node.js. | |
# Author: wraithmonster | |
# Reference: https://github.com/joyent/node/wiki/Installation | |
# Web framework - http://expressjs.com/ | |
# Node Pkg Manager - https://github.com/isaacs/npm | |
# | |
################################################################################ |
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
# References: | |
# http://bit.ly/bash-exit-status | |
# http://bit.ly/bash-remove-slash | |
# http://www.delorie.com/gnu/docs/wget/wget_27.html | |
# Strip whitespace | |
WS=`expr "$1" : '[[:space:]]*\(.*\)[[:space:]]*$'` | |
# Strip whitespace and remove any trailing slashes | |
WS_AND_SLASHES=`expr "$1" : '[[:space:]]*\(.*\)[[:space:]]*$' | sed -e 's/\\/$//g'` |
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 | |
################################################################################ | |
# | |
# Title: marmdir.sh | |
# Description: Archive the specified directory, then remove it | |
# Author: wraithmonster | |
# Reference: http://www.apl.jhu.edu/Misc/Unix-info/tar/tar_28.html | |
# http://bit.ly/bash-string-length | |
# http://www.linux.com/archive/feature/120291 |