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:/tmp$ curl -O https://raw.githubusercontent.com/edx/configuration/update-migration-script-cypress/util/vagrant/migrate.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2770 100 2770 0 0 15762 0 --:--:-- --:--:-- --:--:-- 20072
vagrant@precise64:/tmp$ ./migrate.sh
Cloning into 'configuration'...
remote: Counting objects: 1206, done.
remote: Compressing objects: 100% (760/760), done.
remote: Total 1206 (delta 127), reused 886 (delta 69), pack-reused 0
Receiving objects: 100% (1206/1206), 418.88 KiB | 0 bytes/s, done.
@singingwolfboy
singingwolfboy / files-changed.sh
Last active August 29, 2015 14:25
Lines/files changed from Birch to Cypress RC
git diff --numstat named-release/birch...named-release/cypress.rc | grep -Ev "(/vendor/)|(conf/locale)|(static/fonts)|(test/data/uploads)|^-" | wc -l
vagrant@precise64:/tmp$ curl -O https://raw.githubusercontent.com/edx/configuration/master/util/vagrant/migrate.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2735 100 2735 0 0 5452 0 --:--:-- --:--:-- --:--:-- 5984
vagrant@precise64:/tmp$ chmod a+x migrate.sh
vagrant@precise64:/tmp$ ./migrate.sh -h
Attempts to migrate your Open edX installation to a different release.
-c CONFIGURATION
Use the given configuration. Either "devstack" or "fullstack".
@singingwolfboy
singingwolfboy / broken.log
Last active August 29, 2015 14:25
setuptools goes into an infinite loop when trying to install dm.xmlsec.binding. pip and setuptools at their latest version, Cython present. Fixed if lxml is already installed.
edxapp@precise64:/tmp$ virtualenv setuptools
New python executable in setuptools/bin/python
Installing setuptools, pip...done.
(setuptools)edxapp@precise64:/tmp$ pip install -U pip setuptools Cython
Downloading/unpacking pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-7.1.0-py2.py3-none-any.whl#md5=b108384a762825ec20345bb9b5b7209f
Downloading pip-7.1.0-py2.py3-none-any.whl (1.1MB): 1.1MB downloaded
Downloading/unpacking setuptools from https://pypi.python.org/packages/3.4/s/setuptools/setuptools-18.0.1-py2.py3-none-any.whl#md5=19c0c145c3d2a615b0a33f0aeddd1c02
Downloading setuptools-18.0.1-py2.py3-none-any.whl (461kB): 461kB downloaded
Downloading/unpacking Cython
Downloading Cython-0.22.1.tar.gz (1.6MB): 1.6MB downloaded
# DON'T JUST ADD NEW DEPENDENCIES!!!
#
# If you open a pull request that adds a new dependency, you should notify:
# * @mollydb - to check licensing
# * [email protected] - to check system requirements
beautifulsoup4==4.1.3
beautifulsoup==3.2.1
bleach==1.4
html5lib==0.999
edxapp@precise64:~/edx-platform$ git reset --hard origin/ned/new-sass-munging
HEAD is now at 3e7699b Fix a few places that need $static-path
edxapp@precise64:~/edx-platform$ paver devstack lms
---> pavelib.servers.devstack
---> pavelib.prereqs.install_prereqs
---> pavelib.prereqs.install_ruby_prereqs
bundle install --quiet
---> pavelib.prereqs.install_node_prereqs
test `npm config get registry` = "http://registry.npmjs.org/" || (echo setting registry; npm config set registry http://registry.npmjs.org/)
npm install
vagrant@precise64:~$ sudo /edx/bin/update edx-platform ned/new-sass-munging
[WARNING]: It is unneccessary to use '{{' in loops, leave variables in loop
expressions bare.
PLAY [Deploy edxapp] **********************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
% vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> 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
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 8000 => 8010 (adapter 1)
default: 8001 => 8011 (adapter 1)
[db@mastodon:~]
% cd devstack
[db@mastodon:~/devstack]
% ls
Vagrantfile cs_comments_service edx-platform more ora themes
[db@mastodon:~/devstack]
% cat Vagrantfile
Vagrant.require_version ">= 1.5.3"
unless Vagrant.has_plugin?("vagrant-vbguest")
raise "Please install the vagrant-vbguest plugin by running `vagrant plugin install vagrant-vbguest`"
@singingwolfboy
singingwolfboy / gist:3b16a668b429e3672352
Created July 1, 2015 17:08
using master branch of configuration doesn't work :(
[db@mastodon:~/devstack]
% ls
Vagrantfile
[db@mastodon:~/devstack]
% less Vagrantfile
[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...