This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[cjcolvar@localhost avalon]$ bundle exec rake db:version | |
Current version: 20160511155417 | |
[cjcolvar@localhost avalon]$ bundle exec rake db:migrate:status | |
database: /home/cjcolvar/Code/avalon/avalon/db/development.sqlite3 | |
Status Migration ID Migration Name | |
-------------------------------------------------- | |
up 20120202180525 Devise create users | |
up 20120202180540 Create searches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WEBVTT | |
1 | |
00:00:01.000 --> 00:00:10.000 | |
This is the first line of text, displaying from 1-10 seconds | |
2 | |
00:00:15.000 --> 00:00:20.000 | |
And the second line of text | |
separated over two lines |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Magic to zero out space on host without running guest | |
modprobe nbd max_part=16 | |
qemu-nbd -c /dev/nbd0 /home/cjcolvar/VirtualBox\ VMs/avalon-installer_default_1383930303/box-disk1.vdi | |
partprobe | |
vgchange -a y VolGroup | |
zerofree /dev/mapper/VolGroup-lv_swap | |
zerofree /dev/mapper/VolGroup-lv_root | |
vgchange -a n VolGroup | |
qemu-nbd -d /dev/nbd0 | |
#End magic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vagrant destroy | |
vagrant up | |
VM_UUID=`VBoxManage list runningvms | grep -o '[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}'` | |
HD_UUID=`VBoxManage list -l runningvms | grep "SATA.*UUID" | grep -o '[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}'` | |
VM_DATE=`date +%y%m%d` | |
VBoxManage snapshot "${VM_UUID}" take "avalon-vm-${VM_DATE}-bootstrapped" | |
#Do OVA prep | |
vagrant ssh -c 'sudo yum install -y NetworkManager-gnome firstboot perl-XML-Twig perl-YAML-LibYAML' | |
vagrant ssh -c 'sudo rpm -i "http://www.avalonmediasystem.org/downloads/avalon-vm-2.0-1.noarch.rpm"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
vagrant up | |
VM_UUID=`VBoxManage list runningvms | grep -o '[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}'` | |
HD_UUID=`VBoxManage list -l runningvms | grep "SATA.*UUID" | grep -o '[0-9a-fA-F]\{8\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{4\}-[0-9a-fA-F]\{12\}'` | |
vagrant halt | |
VM_DATE=`date +%y%m%d` | |
VBoxManage modifyhd ${HD_UUID} --compact | |
VBoxManage export ${VM_UUID} --output avalon-vm-${VM_DATE}.ova --product "Avalon Media System" --producturl http://www.avalonmediasystem.org --version R2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'nokogiri' | |
require 'open-uri' | |
require 'base64' | |
filename = ARGV[0] | |
f = File.new filename | |
doc = Nokogiri::XML::Document.parse f | |
f.close | |
#Get rid of Audit trail | |
doc.xpath("//foxml:datastream[@ID='AUDIT']").each {|n| n.remove()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lockdir=~/ | |
searchdir=$1 | |
if [ -e ${lockdir}/.stripChaptersCronJob.lock ] | |
then | |
exit | |
fi | |
touch ${lockdir}/.stripChaptersCronJob.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hydra::RoleManagement::Engine.routes.draw do | |
#role_users POST /roles/:role_id/users(.:format) user_roles#create | |
# role_user DELETE /roles/:role_id/users/:id(.:format) user_roles#destroy | |
# roles GET /roles(.:format) roles#index | |
# POST /roles(.:format) roles#create | |
# new_role GET /roles/new(.:format) roles#new | |
# edit_role GET /roles/:id/edit(.:format) roles#edit | |
# role GET /roles/:id(.:format) roles#show | |
# PUT /roles/:id(.:format) roles#update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cap deploy matterhorn HOSTS=pawpaw.dlib.indiana.edu production SCM_BRANCH=release/2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'fedora_solr_sync_issues' do | |
describe 'master files no longer in fedora but still in solr' do | |
let!(:master_file) {FactoryGirl.create(:master_file)} | |
after do | |
ActiveFedora::SolrService.instance.conn.delete_by_id(master_file.pid) | |
ActiveFedora::SolrService.instance.conn.commit | |
end |