Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Computing Data Project

Setting up

First, set up the database:

git clone
cd computing-data-project
mysql -e "create database computingdata"
make read  # read in data from sql directory

If MySQL needs credentials, one way to avoid entering the password each time is to create a file named my.cnf with the following contents:


(Maybe change the permissions on the file.)

Now when you run a MySQL command, you can pass --defaults-extra-file=my.cnf. For example:

make read MYSQL_ARGS="--defaults-extra-file=my.cnf"

Now set up the password file to allow PHP to log in to the database:

cp access-portal/backend/globalVariables/{,}
vi access-portal/backend/globalVariables/  # change to add database login info

If you're hosting this on a server, make sure to disable public access to the password file.

Finally start the service:

cd access-portal
php -S localhost:8000

To get AnchorJS and tablesorter, run:

make fetch_anchorjs
make fetch_tablesorter

You can now visit http://localhost:8000/ in your browser.

Getting EC2 spot price history

Run the following:

aws ec2 describe-spot-price-history \
    --start-time "$(date -u -d '91 days ago' +'%Y-%m-%dT%H:%M:%S')" \
    --end-time "$(date -u -d 'tomorrow' +'%Y-%m-%dT%H:%M:%S')" \
    --region us-east-1 > aws-spot-"$(date -u -Idate)".json
You can’t perform that action at this time.