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
vagrant@precise64:/edx/app/edx_ansible/edx_ansible$ /edx/bin/update edx-platform named-release/cypress.rc
PLAY [Deploy edxapp] **********************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [aws | gather ec2 facts for use in other roles] *************************
ok: [localhost]
@singingwolfboy
singingwolfboy / gist:65ee5ceae7ae798647cf
Created July 24, 2015 17:21
python -m compileall returns exit code 1, don't know why
vagrant@precise64:/edx/app/edx_ansible/edx_ansible$ /edx/bin/update edx-platform youtube-api-birch
[WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.
PLAY [Deploy edxapp] **********************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
% curl -O https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6426 100 6426 0 0 19992 0 --:--:-- --:--:-- --:--:-- 20018
[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_1438288348969_13744
% curl -O https://raw.githubusercontent.com/edx/configuration/master/vagrant/release/devstack/Vagrantfile
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6426 100 6426 0 0 7489 0 --:--:-- --:--:-- --:--:-- 7489
[db@mastodon:~/devstack-test]
% vim Vagrantfile
[db@mastodon:~/devstack-test]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'devstack-nightly-2015-08-03' could not be found. Attempting to find and install...
% cd devstack-test
[db@mastodon:~/devstack-test]
% vagrant provision
==> default: Running provisioner: shell...
default: Running: inline script
==> default: stdin: is not a tty
==> default:
==> default: PLAY [Configure instance(s)] **************************************************
==> default:
==> default: GATHERING FACTS ***************************************************************
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'birch-devstack-2'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: devstack-test_default_1438700198280_63999
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
% export OPENEDX_RELEASE="named-release/cypress.rc"
[db@dhcp-18-189-94-131:~/devstack-test]
% vagrant destroy
==> default: VM not created. Moving on...
==> default: Removing hosts
==> default: No machine id, nothing removed from /etc/hosts
[db@dhcp-18-189-94-131:~/devstack-test]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'cypress-devstack-rc3' could not be found. Attempting to find and install...
@singingwolfboy
singingwolfboy / models.py
Last active August 29, 2015 14:27
How do I make SQLAlchemy understand that when I refer to User.hipchat_group, it should do a join through the one-to-one User.hipchat_user relation?
from datetime import datetime
from sqlalchemy.orm import backref
from hiptweet import db, login_manager
class HipChatGroup(db.Model):
__tablename__ = "hipchat_group"
id = db.Column(db.Integer, primary_key=True)
created_at = db.Column(db.DateTime, default=datetime.utcnow)
edxapp@precise64:~/edx-platform$ sass --update --cache-location /tmp/sass-cache --default-encoding utf-8 --style compressed --load-path . --load-path common/static --load-path common/static/sass --load-path lms/static/sass --load-path lms/static/themed_sass --load-path cms/static/sass --load-path common/static/sass --load-path lms/static/certificates/sass lms/static/sass:lms/static/css lms/static/themed_sass:lms/static/css cms/static/sass:cms/static/css common/static/sass:common/static/css lms/static/certificates/sass:lms/static/certificates/css
DEPRECATION WARNING on line 50 of lms/static/sass/multicourse/_courses.scss:
Assigning to global variable "$layout-direction" by default is deprecated.
In future versions of Sass, this will create a new local variable.
If you want to assign to the global variable, use "$layout-direction: "RTL" !global" instead.
Note that this will be incompatible with Sass 3.2.
DEPRECATION WARNING on line 221 of lms/static/sass/multicourse/_courses.scss:
Assigning to global variable
edxapp@precise64:~/edx-platform$ git reset --hard HEAD
HEAD is now at 200adfa A test for optional_include_mako
edxapp@precise64:~/edx-platform$ paver update_assets --debug
---> pavelib.assets.update_assets
---> pavelib.prereqs.install_ruby_prereqs
Ruby prereqs unchanged, skipping...
---> pavelib.prereqs.install_node_prereqs
Node prereqs unchanged, skipping...
python manage.py lms --settings=devstack preprocess_assets lms/static/sass/*.scss lms/static/themed_sass
Finished preprocessing lms assets.