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 / sshfs
Created May 20, 2015 18:39
Mount the filesystem of a Vagrant box onto your Mac!
$ brew cask install sshfs
$ mkdir /Volumes/Vagrant
$ sshfs [email protected]:/ -p 2222 -o IdentityFile=~/devstack/.vagrant/machines/default/virtualbox/private_key /Volumes/Vagrant
# to unmount
$ umount /Volumes/Vagrant
14:37:38 Setting up for cms acceptance using draft
14:37:38 ---> pavelib.assets.update_assets
14:37:38 python manage.py cms --settings=acceptance preprocess_assets
14:37:41 xmodule_assets common/static/xmodule
14:37:43 ---> pavelib.assets.compile_coffeescript
14:37:43 node_modules/.bin/coffee --compile `find /home/jenkins/workspace/edx-platform-test-subset/lms /home/jenkins/workspace/edx-platform-test-subset/cms /home/jenkins/workspace/edx-platform-test-subset/common -type f -name "*.coffee"`
14:37:49 ---> pavelib.assets.compile_sass
14:37:49 sass --style compressed --cache-location /tmp/sass-cache --load-path ./common/static/sass --update -E utf-8 */static
14:37:58 write cms/static/sass/studio-main-rtl.css
14:38:05 write cms/static/sass/studio-main.css
<flashcards title="Capital cities">
<flashcard question="Croatia" answer="Zagreb" />
<flashcard question="France" answer="Paris" />
</flashcards>
% pip freeze
You are using pip version 6.0.8, however version 7.0.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid_xblock-master
amqp==1.4.6
analytics-python==0.4.4
anyjson==0.3.3
argh==0.26.1
astroid==1.3.4
Babel==1.3
% vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '14.04.1 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
*******************************************************************
* _ __ __ *
* _ _| |\ \/ / *
% 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_1435688783684_27942
==> 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...
@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...
[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`"
% 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)
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]