This file should be edited freely.
In this scenario, we want to see if the event "Score" ever happens with the property "{points_earned: 10}" in the properties hash. If we find one, we want to add a new event, "User scored max points".
sudo apt-get install apache2 | |
netstat -an | more | |
cd /var/www | |
sudo apt-get install libapache2-mod-php5 | |
sudo apt-get install php5-mysql |
scp -rp peeyushag@turing.cse.iitk.ac.in:/homepages/global/path-to-folder ~/acads/ |
TODO : Add a Javascript RunTime | |
passenger-config --detect-apache2 | |
sudo yum -y install nodejs | |
sudo tac /var/log/httpd/error.log | less | |
cd /srv/www/webcam_app/current/ | |
sudo bundle exec rake db:migrate RAILS_ENV=production | |
sudo tac log/production.log | less | |
sudo tac /var/log/httpd/error.log | less | |
sudo gem update rake |
Log.all.where(application: 'Geniverse').where(event: 'User logged in').each do |log| | |
username = log.parameters["username"] | |
session = log.session | |
Log.where(session: session).update_all(username: username) | |
end |
cat <Path to File Containg JSON Data> | curl -H "Content-Type: application/json" -d @- <POST Request URL> |
This file should be edited freely.
In this scenario, we want to see if the event "Score" ever happens with the property "{points_earned: 10}" in the properties hash. If we find one, we want to add a new event, "User scored max points".
Test Gist |