Totally Nerdy Information

Mike Heath's Blog

Accessing PATH_INFO

If you want to get the path information appended to your script URL, you can use the PATH_INFO CGI variable. Consider the following CGI script: #!/bin/bash echo “Content-Type: text/plain” echo echo $PATH_INFO all this script does it output the PATH_INFO. This script is available at http://swamp.homelinux.net/cgi-bin/pathinfo. If you click on the link, you will see [...]

To automatically register with the load balancer when my EC2 node starts up, I placed the following script in /etc/init.d/registerlb: #!/bin/bash # # registerlb Startup script for registering and deregistering with the load balancer # # chkconfig: – 90 10 # description: Script for registring and deregistering with load balancer LB_REGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/subscribe LB_UNREGISTER_URL=http://wslb-p.webappwishlist.com:8080/pound/unsubscribe LB_STATUS_URL=http://wslb.webappwishlist.com:8080/pound/list PRIVATE_IP=`ip -4 [...]

Configuring OpenSSH for EC2

If you’re using OpenSSH to access EC2, you can tell ssh to use your ec2 public key instead of specifying the public key with the -i option when you connect to one of your ec2 instances. To do this, create or modify your ~/.ssh/config file and add: host *.amazonaws.com IdentityFile PATH_TO_YOUR_AMAZON_EC2_KEY_PAIR Unlike Putty, you don’t [...]

CS 462 – Distributed Computing

I’m supposed to regularly blog for my CS 462 class at BYU.  In all honesty, I signed up for the class because it looked easy and I wanted an easy class so that I would have more time to work on my thesis.  The FAQ for the class states that it’s a hard class and [...]

« Previous Page  Next Entries »

Calendar

February 2012
M T W T F S S
« Mar    
 12345
6789101112
13141516171819
20212223242526
272829