Skip to content

Instantly share code, notes, and snippets.

View hosamshahin's full-sized avatar

Hossameldin Shahin hosamshahin

  • Thomson Reuters
  • Waterloo, ON, Canada
View GitHub Profile
GET https://www.sandbox.edx.org/static/css/ie.css.map 404 (Not Found)
(index):61 GET https://www.sandbox.edx.org/static/css/application-extend1.css.map 404 (Not Found)
(index):61 GET https://www.sandbox.edx.org/static/css/application-extend2.css.map 404 (Not Found)
(index):1294 GET https://www.sandbox.edx.org/static/js/annotator-full.map 404 (Not Found)
(index):1 GET https://www.sandbox.edx.org/static/css/course.css.map 404 (Not Found)
TeX-MML-AM_HTMLorMML-full.js:90 Resource interpreted as Font but transferred with MIME type binary/octet-stream: "https://edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/fonts/HTML-CSS/TeX/woff/MathJax_Math-Italic.woff".
TeX-MML-AM_HTMLorMML-full.js:90 Resource interpreted as Font but transferred with MIME type binary/octet-stream: "https://edx-static.s3.amazonaws.com/mathjax-MathJax-727332c/fonts/HTML-CSS/TeX/woff/MathJax_Size1-Regular.woff".
jquery.min.js:4 POST https://opendsax.herokuapp.com/api/v1/user/exercise/avbutton/ 404 (Not Found)
odsaUtils-min.js:787 Error sendi
@hosamshahin
hosamshahin / gist:5b2d63eb6e00716f6d3e
Created February 18, 2015 03:07
/edx/var/log/{lms,cms,nginx}/*log
==> /edx/var/log/lms/edx.log <==
return fun(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/kombu/connection.py", line 270, in heartbeat_check
return self.transport.heartbeat_check(self.connection, rate=rate)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/kombu/transport/pyamqp.py", line 134, in heartbeat_check
return connection.heartbeat_tick(rate=rate)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/amqp/connection.py", line 844, in heartbeat_tick
raise ConnectionError('Too many heartbeats missed')
ConnectionError: Too many heartbeats missed
Feb 17 18:44:07 {{HIDDEN}} [service_variant=lms][celery.worker.consumer][env:sandbox] INFO [{{HIDDEN}} 4155] [consumer.py:742] - consumer: Connected to amqp://celery@127.0.0.1:5672//.
@hosamshahin
hosamshahin / gist:16bb6224314d86f4358f
Last active August 29, 2015 14:15
/edx/var/log/{lms,cms,nginx}/*log
==> /edx/var/log/lms/edx.log <==
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/worker/consumer.py", line 458, in consume_messages
poll_timeout = (fire_timers(propagate=errors) if scheduled
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/worker/hub.py", line 157, in fire_timers
entry()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/utils/timer2.py", line 59, in __call__
return self.fun(*self.args, **self.kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/celery/utils/timer2.py", line 165, in _reschedules
return fun(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/kombu/connection.py", line 270, in heartbeat_check
edxapp@precise64:/edx/OpenDSAX$ make testXEDX
python tools/configure.py --edx config/testX.json
Configuring OpenDSA, using config/testX.json
Validating config/testX.json
Writing files to /edx/OpenDSAX/Books/testX/
Generating index.rst
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) In your rails applicaiton root folder create self signed certificate
$ openssl req -new -newkey rsa:2048 -sha1 -days 365 -nodes -x509 -subj "/C=US/ST=Colorado/L=Colorado Springs/O=SW/CN=localhost.ssl" -keyout server.key -out server.crt
# 2) Add localhost.ssl to your hosts file
$ echo "127.0.0.1 localhost.ssl" | sudo tee -a /etc/hosts
- How To Set Up Devise AJAX Authentication With Rails 4.0
- review the blog post here: http://blog.andrewray.me/how-to-set-up-devise-ajax-authentication-with-rails-4-0/
- Then:
// sidn_up
$.post(
"https://192.168.33.10:3000/signup.json", {
'user[email]': 'hshahin1@vt.edu',
'user[password]': 'codeworkout',
- Upload exercise files at the 'gym/exercises/upload' URL from CodeWorkout's root
- Then use the /gym/workouts/new URL from CodeWorkout's home to create a new workout from existing exercises
and simultaneously add it to a course offering
# to connect to the server without password
- Open a terminal on your machine A as user a and generate a pair of authentication keys. Do not enter a passphrase:
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):
# preapre IPython Notebook
- Install anaconda2
$ wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda2-2.5.0-Linux-x86_64.sh
$ bash Anaconda2-2.5.0-Linux-x86_64.sh
$ source ~/.bashrc
- Install anaconda3
$ wget https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-4.0.0-Linux-x86_64.sh
$ bash Anaconda3-4.0.0-Linux-x86_64.sh
$ source ~/.bashrc
# SSH authentication via keys
- Open a terminal on your local machine A as user a and generate a pair of authentication keys. Do not enter a passphrase:
a@A:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/a/.ssh/id_rsa):
Created directory '/home/a/.ssh'.
Enter passphrase (empty for no passphrase):