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
// ==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==
[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
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
-------------------------+--------+-----------------+-----------------------------------------------------------------------------------------------------+---------------------
# -*- 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
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
@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
Traceback:
File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
109. response = callback(request, *callback_args, **callback_kwargs)
File "/home/jenkins/edx-venv/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view
20. return view_func(request, *args, **kwargs)
File "/home/jenkins/workspace/edx-platform-test-subset/cms/djangoapps/contentstore/views/course.py" in course_handler
260. return _create_or_rerun_course(request)
File "/home/jenkins/workspace/edx-platform-test-subset/common/djangoapps/util/json_request.py" in parse_json_into_request
27. return view_function(request, *args, **kwargs)
File "/home/jenkins/workspace/edx-platform-test-subset/cms/djangoapps/contentstore/views/course.py" in _create_or_rerun_course
This file has been truncated, but you can view the full file.
% python manage.py lms syncdb --migrate --settings=cms.dev
Syncing...
DEBUG:django.db.backends:(0.000)
SELECT name FROM sqlite_master
WHERE type='table' AND NOT name='sqlite_sequence'
ORDER BY name; args=()
Creating tables ...
Creating table auth_permission
DEBUG:django.db.backends:(0.003) CREATE TABLE "auth_permission" (
"id" integer NOT NULL PRIMARY KEY,
from collections import defaultdict
data = defaultdict(lambda: defaultdict(dict))
# populate the data structure
for row in table:
data[row.make][row.model][row.lotnum] = color
# read the data structure
for make, models in data.items():
for model, lots in models.items():
for lotnum, color in lots.items():
% paver update_db -s dev ✹
Warning: could not find environment JSON file at '/Users/db/lms.env.json'
---> pavelib.servers.update_db
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
---> pavelib.prereqs.install_python_prereqs
pip install -q --exists-action w -r requirements/edx/pre.txt