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
# note that this file needs execute permissions to run, which can be done by running "chmod u+rwx ./install_git_on_parallel.sh" (without quotes) | |
# this script based on: | |
# http://joemaller.com/908/how-to-install-git-on-a-shared-host/ | |
# http://stackoverflow.com/questions/9500898/compiler-error-msgfmt-command-not-found-when-compiling-git-on-a-shared-hosting | |
# update $PATH | |
echo "# the following two lines added by install_git_on_parallel.sh" >> ~/.bashrc | |
echo "export PATH=$HOME/opt/bin:$PATH" >> ~/.bashrc | |
echo ". $HOME/opt/contrib/completion/git-completion.bash" >> ~/.bashrc | |
. ~/.bashrc |
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
#Replace the information in double quotes with your info | |
export USER_EMAIL="[email protected]" | |
export USER_NAME="myFirstName myLastName" | |
export HW5_LOCATION="~/hw5" | |
#Generate public/private key-pair on aludra | |
ssh-keygen -t rsa -b 4096 -C "$USER_EMAIL" | |
#Setup git in PATH | |
echo "source /usr/usc/git/default/setup.csh" >> ~/.cshrc |
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
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ' | |
export PS1='\[\033[0;32m\]\h\[\033[0;36m\] \w\[\033[00m\]: ' |
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 | |
# Some text available in the file | |
SAMPLE_TEXT=$1 | |
# The dev path for the media with the deleted file, e.g. /dev/sda2 | |
HDD=$2 | |
# The file used to store the output | |
RECOVERY_FILE=$3 |
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/sh | |
WEB_PAGE=$1 | |
ADMIN_EMAIL=$2 | |
EMAIL_SIGNATURE="Sent by $USER@$(hostname) on $(date)" | |
# Get HTTP server response code | |
result=$(curl -s -I $WEB_PAGE | grep HTTP/1.1 | awk {'print $2'}) | |
# Report a non-responsive server | |
if [ ! -n "$result" ] |
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 | |
echo "Network speed testing..." | |
cachefly=$( wget -O /dev/null http://cachefly.cachefly.net/100mb.test 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from CacheFly: $cachefly " | |
linodeatl=$( wget -O /dev/null http://atlanta1.linode.com/100MB-atlanta.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from Linode, Atlanta GA: $linodeatl " | |
linodedltx=$( wget -O /dev/null http://dallas1.linode.com/100MB-dallas.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) | |
echo "Download speed from Linode, Dallas, TX: $linodedltx " | |
linodejp=$( wget -O /dev/null http://tokyo1.linode.com/100MB-tokyo.bin 2>&1 | awk '/\/dev\/null/ {if ($4=="-") speed=$2 $3; else speed=$3 $4;} END {gsub(/\(|\)/,"",speed); print speed}' ) |
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
dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync |
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
-- Calculate Database Size | |
SELECT table_schema "Database_Name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 "Free Space in MB" | |
FROM information_schema.TABLES | |
GROUP BY table_schema; |
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
## MimeType handling | |
## ------------------- | |
## | |
## Use the "Content-Type" extended attribute to obtain mime type if | |
## possible | |
## | |
## Source: http://redmine.lighttpd.net/wiki/1/Mimetype.assignDetails | |
## | |
mimetype.use-xattr = "disable" |
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
server.port = 80 | |
#server.bind = "" | |
server.tag ="lighttpd" | |
server.modules = ( | |
"mod_access", | |
"mod_alias", | |
"mod_accesslog", | |
"mod_compress", | |
"mod_expire", |
OlderNewer