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 | |
script_name=`basename $0` | |
if [[ "$1" == "--help" ]]; then | |
echo "Usage ${script_name} [subdirectory1 [subdirectory2]...]" | |
echo "Counts the files in the specified directories, or in all subdirectories if none specified" | |
exit 1 | |
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
#!/bin/bash | |
script_name=`basename $0` | |
function show_usage { | |
echo "Sets the time delay before the Mac goes into 'deep sleep'." | |
echo " Usage: $script_name time" | |
echo " Where time is 'default' or 'long'." | |
exit 1 | |
} |
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
################################################################################ | |
# File: SSH client configuration | |
# Author: Matt Ward | |
################################################################################ | |
Host wopr | |
HostName wopr.example.com | |
IdentityFile ~/.ssh/id_wopr | |
User mward |
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
# My lovely PS1 prompt, e.g. "matt@ziggy:~$ " | |
# The prompt is green but my input is white. Works best on a black background. | |
# PS1 is a shell variable not an environment variable - do not export | |
PS1='\[\e[0;32m\]\u@\h:\W\$\[\e[m\] ' | |
# Show your *public* ip address | |
alias myip='curl -s -S http://checkip.amazonaws.com' | |
# Copy your *public* ip address to the clipboard (Mac OS only) | |
alias myip-clip='echo -n $(myip) | pbcopy' |