{"action":"created","issue":{"url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/8","labels_url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/8/comments","events_url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/8/events","html_url":"https://github.com/ycoady/UVic-Distributed-Systems/issues/8","id":56197968,"number":8,"title":"Lab 3: Hello GEE!","user":{"login":"ycoady","id":1288637,"avatar_url":"https://avatars.githubusercontent.com/u/1288637?v=3","gravatar_id":"","url":"https://api.github.com/users/ycoady","html_url":"https://github.com/ycoady","followers_url":"https://api.github.com/users/ycoady/followers","following_url":"https://api.github.com/users/ycoady/following{/other_user}","gists_url":"https://api.github.com/users/ycoady/gists{/gist_id}","starred_url":"https://api.github.com/users/ycoady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycoady/subscriptions","organizations_url":"https://api.github.com/users/ycoady/orgs","repos_url":"https://api.github.com/users/ycoady/repos","events_url":"https://api.github.com/users/ycoady/events{/privacy}","received_events_url":"https://api.github.com/users/ycoady/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-02T05:34:11Z","updated_at":"2015-02-02T06:52:20Z","closed_at":null,"body":"Post your results here!"},"comment":{"url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/comments/72413355","html_url":"https://github.com/ycoady/UVic-Distributed-Systems/issues/8#issuecomment-72413355","issue_url":"https://api.github.com/repos/ycoady/UVic-Distributed-Systems/issues/8","id":72413355,"user":{"login":"Hoverbear","id":130903,"avatar_url":"https://avatars.githubusercontent.com/u/130903?v=3","gravatar_id":"","url":"https://api.github.com/users/Hoverbear","html_url":"https://github.com/Hoverbear","followers_url":"https://api.github.com/users/Hoverbear/followers","following_url":"https://api.github.com/users/Hoverbear/following{/other_user}","gists_url":"https://api.github.com/users/Hoverbear/gists{/gist_id}","starred_url":"https://api.github.com/users/Hoverbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hoverbear/subscriptions","organizations_url":"https://api.github.com/users/Hoverbear/orgs","repos_url":"https://api.github.com/users/Hoverbear/repos","events_url":"https://api.github.com/users/Hoverbear/events{/privacy}","received_events_url":"https://api.github.com/users/Hoverbear/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T06:52:20Z","updated_at":"2015-02-02T06:52:20Z","body":"Dirty and simple.\r\n```python\r\ndef doAssignment():\r\n    run('curl http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz | gunzip > GeoLiteCity.dat')\r\n    run('apt-get update && apt-get install -y geoip-bin wget')\r\n    run(\"ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}' > CONTAINER_IP\")\r\n    run(\"curl -s checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//' > HOST_IP\")\r\n    run(\"hostname > HOSTNAME\")\r\n    run(\"hostname | head -c 7 > SLICENAME\")\r\n    run(\"geoiplookup -f GeoLiteCity.dat $(cat HOST_IP) | awk -F '[, ]' '{print $(NF-6)}' > LAT\")\r\n    run(\"geoiplookup -f GeoLiteCity.dat $(cat HOST_IP) | awk -F '[, ]' '{print $(NF-4)}' > LNG\")\r\n    run(\"echo $(cat CONTAINER_IP) $(cat HOST_IP) $(cat HOSTNAME) $(cat SLICENAME) $(cat LAT) $(cat LNG)\")\r\n    run('curl \"http://www.lively-web.org/nodejs/GEETutorial/helloWorld?slice=$(cat SLICENAME)&name=$(cat HOSTNAME)&ip=$(cat HOST_IP)&local=$(cat CONTAINER_IP)&lat=$(cat LAT)&lng=$(cat LNG)\"')\r\n```"}}