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
#!/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
#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
#Adding a new document action: | |
#Override the catalog controller or subclass and add your action: | |
#needs user feedback from a form | |
self.add_action(:translate, :translate_action, validator: :validate_translate_params) | |
def translate_action | |
Translator.translate(documents, params[:language]) | |
end | |
#doesn't require form feedback |
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
2015-07-28 17:45:16 INFO (AbstractCmdlineEncoderEngine:237) - Executing encoding command: /usr/bin/ffmpeg -i /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename.mp4 -codec copy -map 0 -bsf h264_mp4toannexb -f segment -segment_list /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename_b20051ba-dc9c-409b-b62d-6ad46e068dce.m3u8 -segment_time 10 /usr/local/matterhorn/work/opencast/workspace/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/bf058e85-3770-4607-b10e-82b09f4c7bec/filename_b20051ba-dc9c-409b-b62d-6ad46e068dce-%03d.ts | |
2015-07-28 17:45:16 INFO (AbstractCmdlineEncoderEngine:261) - Video track filename.mp4 successfully encoded using profile 'profile.hls.http' | |
2015-07-28 17:45:16 WARN (HLSDistributionServiceImpl:269) - Error distributing http://avalon.example.com:18080/files/mediapackage/8677661e-0e40-4585-a94d-6ae8c4af664d/d48e |
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
[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
# Place any default configuration for solr_wrapper here | |
port: 8984 | |
enable_jms: false | |
fcrepo_home_dir: tmp/fcrepo4-development-data | |
java_options: | |
- '-Dfcrepo.log.http.api=WARN' | |
- '-Dfcrepo.log.kernel=ERROR' | |
- '-Dfcrepo.home=tmp/fcrepo4-development-data' | |
- '-Dfcrepo.spring.jms.configuration=file:///Users/cjcolvar/.rvm/gems/ruby-2.3.1/gems/fcrepo_wrapper-0.7.0/data/spring-noop.xml' | |
- '-Dcom.sun.management.jmxremote' |
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
module ActiveFedora | |
module Indexing | |
# Finds all descendent URIs of a given repo URI (usually the base URI). | |
# | |
# This is a slow and non-performant thing to do, we need to fetch every single | |
# object from the repo. | |
# | |
# The DescendantFetcher is also capable of partitioning the URIs into "priority" URIs | |
# that will be first in the returned list. These prioritized URIs belong to objects | |
# with certain hasModel models. This feature is used in some hydra apps that need to |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use XML::LibXSLT; | |
use XML::LibXML; | |
use POSIX qw(strftime); | |
use File::Basename qw(dirname basename); | |
use Getopt::Long |