Skip to content

Instantly share code, notes, and snippets.

View e-kolpakov's full-sized avatar

Eugeny Kolpakov e-kolpakov

View GitHub Profile
@e-kolpakov
e-kolpakov / docker-compose.yml
Last active April 29, 2018 07:21
Bitnami Moodle docker-compose for LTI Open edX workshop
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
- MARIADB_USER=bn_moodle
- MARIADB_DATABASE=bitnami_moodle
- MARIADB_PORT_NUMBER=3306
- ALLOW_EMPTY_PASSWORD=yes
volumes:
@e-kolpakov
e-kolpakov / ReferenceConfGeneratorPlugin.scala
Created January 22, 2018 12:18
Plugin to generate reference.conf
import com.typesafe.sbt.{GitPlugin, SbtGit}
import sbt._
import sbt.Keys._
import sbt.plugins.JvmPlugin
object ReferenceConfGeneratorPlugin extends AutoPlugin {
// JvmPlugin is necessary to append to default sbt Keys (e.g. cleanFiles)
// see https://github.com/sbt/sbt/issues/1725#issuecomment-63942392
override def requires = GitPlugin && JvmPlugin
override lazy val projectSettings: Seq[Def.Setting[_]] = baseReferenceGeneratorSettings
Using indexes:
https://pypi.python.org/simple
ROUND 1
Current constraints:
fs==2.0.3
Finding the best candidates:
found candidate fs==2.0.3 (constraint was ==2.0.3)
FAIL: test_existing_user (registration.tests.browser.browser_registration.BetaTestBrowserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 335, in test_existing_user
self.assert_registration_succeeds(self.form_data)
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 76, in assert_registration_succeeds
self.assert_success_response(response)
File "/home/vagrant/opencraft/registration/tests/test_views.py", line 97, in assert_success_response
'successfully sent', response_body)
AssertionError: 'Your application for the OpenCraft beta has been successfully sent' not found in '<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" class=" js flexbox flexboxlegacy canvas canvastext webgl no-touch geolocation postmessage no-websqldatabase indexeddb hashchange history draganddrop websockets rgba hsla multiplebgs backgroundsize borderi
#!/bin/bash
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
sudo iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
server {
listen 80;
server_name lms.mcka.local;
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';
add_header "Access-Control-Allow-Credentials" "true";
location ~ ^/static/(?P<file>.*) {
root /edx/var/edxapp/;
try_files /staticfiles/$file /course_static/$file =404;
# return a 403 for static files that shouldn't be
# in the staticfiles directory
location ~ ^/static/(?:.*)(?:\.xml|\.json|README.TXT) {
return 403;
}
% elif context_library:
<%
library_key = context_library.location.course_key
index_url = reverse('contentstore.views.library_handler', kwargs={'library_key_string': unicode(library_key)})
import_url = 'TODO'
export_url = 'TODO'
%>
<h2 class="info-course">
<span class="sr">${_("Current Library:")}</span>
<a class="course-link" href="${index_url}">
@e-kolpakov
e-kolpakov / ImageExplorerPopupOverride.tar.gz
Last active August 29, 2015 14:06
Image explorer popup override tarball