Skip to content

Instantly share code, notes, and snippets.

View singingwolfboy's full-sized avatar
Available for contract work

David Baumgold singingwolfboy

Available for contract work
View GitHub Profile
@singingwolfboy
singingwolfboy / gist:758422be688881c961d0
Created March 26, 2015 00:02
Build failure on ReadTheDocs.org for building documentation for Flask-Dance
Build for flask-dance
Built: March 25, 2015. 6:52 p.m.
State: Finished
Outcome: Failed (Status Code: 1)
Version: latest
webhookdb::GRAY=> select r.name, count(*) as pr_count from github_repository as r, github_pull_request as pr where r.owner_login = 'edx' and pr.base_repo_id = r.id and pr.state = 'open' group by r.name order by pr_count desc;
name | pr_count
-------------------------------+----------
edx-platform | 137
configuration | 23
edx-documentation | 15
edx-ora2 | 8
edx-notifications | 7
edx-app-android | 7
edx-analytics-pipeline | 6
# -*- coding: utf-8 -*-
"""Test for Discussion Xmodule functional logic."""
import os
from mock import Mock
from . import BaseTestXmodule, XModuleRenderingTestBase
from xmodule.discussion_module import DiscussionModule
from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory
from courseware.module_render import get_module_for_descriptor_internal
SELECT r.name AS repo_name, pr.number, u.login AS github_username, pr.title, pr.created_at
FROM github_pull_request AS pr, github_repository AS r, github_user as u
WHERE pr.base_repo_id = r.id
AND pr.user_id = u.id
AND pr.state = 'open'
AND pr.created_at < NOW() - INTERVAL '45 days'
ORDER BY pr.created_at;
repo_name | number | github_username | title | created_at
-------------------------+--------+-----------------+-----------------------------------------------------------------------------------------------------+---------------------
[db@mastodon:~/devstack]
% export OPENEDX_RELEASE=named-release/birch
[db@mastodon:~/devstack]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'birch-devstack' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'birch-devstack' (v0) for provider: virtualbox
default: Downloading: http://files.edx.org/vagrant-images/20150224-birch-devstack.box
// ==UserScript==
// @name Github Expand All Comments
// @namespace http://www.edx.org/developers
// @version 0.1
// @description Help manage github pull request comments
// @match *://github.com/*/pull/*
// @copyright 2014+, Gabe Mulley
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// ==/UserScript==
@singingwolfboy
singingwolfboy / gist:88c6391903acc48890ed
Created February 13, 2015 16:20
Problem with Birch RC2 devstack install
% echo $OPENEDX_RELEASE
named-release/birch.rc2
[db@mastodon:~/devstack]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'lavash-devstack'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: devstack_default_1423844040266_27283
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
Feb 5 20:50:31 precise64 [service_variant=lms][dd.dogapi][env:sandbox] INFO [precise64 15480] [dog_stats_api.py:
66] - Initializing dog api to use statsd: localhost, 8125
Feb 5 20:50:32 precise64 [service_variant=lms][xblock.plugin][env:sandbox] WARNING [precise64 15480] [plugin.py:138] - Unable to load XBlock 'course_info'
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 136, in load_classes
yield (class_.name, cls._load_class_entry_point(class_))
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/plugin.py", line 73, in _load_class_entry_point
class_ = entry_point.load()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pkg_resources.py", line 2087, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
@singingwolfboy
singingwolfboy / gist:1ada2aed52ac0664a5ca
Created February 5, 2015 20:31
another migration failure
[db@mastodon:~/fullstack-migrate]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aspen-fullstack-1'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: fullstack-migrate_default_1423166159990_55615
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
@singingwolfboy
singingwolfboy / gist:7e13eda2d819c4ac7e7a
Created February 5, 2015 19:00
failure using a separate configuration repo
[db@mastodon:~/fullstack-migrate]
% echo $OPENEDX_RELEASE
named-release/aspen
[db@mastodon:~/fullstack-migrate]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'aspen-fullstack-1'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: fullstack-migrate_default_1423162409088_59002
==> default: Fixed port collision for 22 => 2222. Now on port 2200.