Skip to content

Instantly share code, notes, and snippets.

{
"responseHeader":{
"status":0,
"QTime":1,
"params":{
"q":"*:*",
"indent":"on",
"fl":"has_model_ssim",
"rows":"42",
"wt":"json"}},
/opt/vagrant/bin/vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20160707.0.1'. The latest is version '20160815.0.0'. Run
==> default: `vagrant box update` to update.
==> default: Setting the name of the VM: geo-concerns-vagrant_default_1471384839455_11694
==> default: Clearing any previously set forwarded ports...
/opt/vagrant/bin/vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ubuntu/trusty64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'ubuntu/trusty64' is up to date...
==> default: A newer version of the box 'ubuntu/trusty64' is available! You currently
==> default: have version '20160707.0.1'. The latest is version '20160809.1.0'. Run
==> default: `vagrant box update` to update.
==> default: Setting the name of the VM: geo-concerns-vagrant_default_1471362780997_87616
==> default: Clearing any previously set forwarded ports...
@yulgit1
yulgit1 / gist:980218c520ecfa8f7a2da4ea21d8abdf
Last active July 30, 2016 23:54
spotlight demo install
vagrant@spotlight-vagrant:/vagrant/spotlight_day_demo$ bundle exec rake ci
solr-6.1.0.zip: |==========================================================================================================================| 100% (Time: 00:02:03 )
solr-6.1.0.zip.md5: |======================================================================================================================| 100% (Time: 00:00:00 )
/usr/bin/ruby2.2 -I/var/lib/gems/2.2.0/gems/rspec-core-3.5.2/lib:/var/lib/gems/2.2.0/gems/rspec-support-3.5.0/lib /var/lib/gems/2.2.0/gems/rspec-core-3.5.2/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
DEPRECATION WARNING: You are using the a deprecated processor interface #<Proc:0x00000006b40298@/var/lib/gems/2.2.0/gems/autoprefixer-rails-6.3.7/lib/autoprefixer-rails/sprockets.rb:37>.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from install at /var/lib/gems/2.2.0/gems/autopr
Cheffile
cookbook 'java', '~> 1.39.0'
Vagrantfile
chef.add_recipe "java"
...
chef.json = {
mysql: {
server_root_password: ''
},
java: {
https://docs.google.com/document/d/1O3qyRqXi0ViCK095WEE4SUi51zLjdc5MjvRTbzqQ5S0/edit
http://link.odai.yale.edu/ypls-ws/PersistentLinking?wsdl
https://github.com/yalelibrary/diggit-hydra/blob/k2findit/lib/tasks/yulhy15.rake#L982
10079.1/rfj9451
Use `bundle show [gemname]` to see where a bundled gem is installed.
force app/controllers/catalog_controller.rb
insert app/controllers/application_controller.rb
insert app/models/search_builder.rb
create config/initializers/hydra_config.rb
create config/role_map.yml
create app/models/ability.rb
generate active_fedora:config:fedora
[Simple Form] Simple Form is not configured in the application and will use the default values. Use `rails generate simple_form:install` to generate the Simple Form configuration.
create config/fedora.yml
[ermadmix@libdev4 avalon]$ rake avalon:services:start
D, [2016-04-21T11:49:25.400920 #12933] DEBUG -- : Starting jetty with these values:
D, [2016-04-21T11:49:25.401017 #12933] DEBUG -- : jetty_home: /home/ermadmix/avalon/avalon/jetty
D, [2016-04-21T11:49:25.401214 #12933] DEBUG -- : jetty_command: java -Djetty.port=8983 -Dsolr.solr.home=/home/ermadmix/avalon/avalon/jetty/solr -XX:MaxPermSize=256m -Xmx256m -jar start.jar
W, [2016-04-21T11:49:25.405679 #12933] WARN -- : Logging jettywrapper stdout to /home/ermadmix/avalon/avalon/jetty/jettywrapper.log
D, [2016-04-21T11:49:25.416645 #12933] DEBUG -- : Wrote pid file to /home/ermadmix/avalon/avalon/tmp/pids/_home_ermadmix_avalon_avalon_jetty_development.pid with value 12936
I, [2016-04-21T11:49:39.495334 #12933] INFO -- : Started jetty (14093.0ms)
jetty started at PID 12936
D, [2016-04-21T11:49:39.496389 #12933] DEBUG -- : Initializing felixwrapper
D, [2016-04-21T11:49:39.496501 #12933] DEBUG -- : Starting felix with these values:
[AVALON] [130.132.80.210] [2016.04.26 17:40:38.443] logout of cas
[AVALON] [130.132.80.210] [2016.04.26 17:40:38.443] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 7 ORDER BY "users"."id" ASC LIMIT 1
[AVALON] [130.132.80.210] [2016.04.26 17:40:38.443] Redirected to https://secure.its.yale.edu/cas/logout
[AVALON] [130.132.80.210] [2016.04.26 17:40:38.443] Completed 302 Found in 13ms (ActiveRecord: 0.3ms)
[AVALON] [172.28.51.119] [2016.04.26 17:40:38.520]
[AVALON] [172.28.51.119] [2016.04.26 17:40:38.520]
[AVALON] [172.28.51.119] [2016.04.26 17:40:38.520] Started POST "/users/auth/cas/callback?url=http%3A%2F%2Flibdev4.library.yale.edu%3A3005%2F" for 172.28.51.119 at 2016-04-26 17:40:38 -0400
[AVALON] [172.28.51.119] [2016.04.26 17:40:38.520] (cas) Callback phase initiated.
[AVALON] [172.28.51.119] [2016.04.26 17:40:38.520] (cas) Authentication failure! logout_request: Nokogiri::XML::XPath::SyntaxError, Undefined namespace prefix: //saml:NameID
[AVALON] [172.28.51.119] [2016.04.26 17:
[13:41:03.865] IP SESSION EXISTS - ALLOW
[13:41:03.865] In set_session...
[13:41:03.865] client_ip:130.132.80.210
[13:41:03.865] Session guestuser:[email protected]
[13:41:03.865] (0.4ms) SELECT COUNT(*) FROM `guest_users` WHERE `guest_users`.`email` = '[email protected]'
[13:41:03.865] GuestUser Load (0.2ms) SELECT `guest_users`.* FROM `guest_users` WHERE `guest_users`.`email` = '[email protected]' LIMIT 1
[13:41:03.865] Use exisiting session: [email protected] 1CLRQ9944lYkbh_LpVknoxkW-P4
[13:41:03.865] SQL (22.5ms) UPDATE `guest_users` SET updated_at = UTC_TIMESTAMP() WHERE (email = "[email protected]")
[13:41:03.865] (0.1ms) BEGIN
[13:41:03.865] (0.1ms) COMMIT