Skip to content

Instantly share code, notes, and snippets.

View dheles's full-sized avatar

Drew Heles dheles

  • LYRASIS
  • Baltimore, MD
View GitHub Profile
@dheles
dheles / work.rb
Created May 17, 2017 16:27
work model
# Generated via
# `rails generate hyrax:work Work`
# attribute mapping from dspace_packager.rake:
## "dc.title" => "title",
## "dc.contributor.author" => "creator",
## "dc.date.issued" => "date_issued",
# "dc.identifier.uri" => "handle",
# "dc.description.abstract" => "abstract",
# "dc.description.provenance" => "provenance",
@dheles
dheles / gist:7adf1b12c55abae2ba47e1e6dde12c60
Last active May 17, 2017 21:47
dspace packager rake error
$ RAILS_ENV=development bundle exec rake packager:aip["import/CompSci_current.zip","dheles@jhu.edu"]
loading task import
Building Import Package from AIP Export file: import/CompSci_current.zip
***** COLLECTION [Current Technical Reports] *****
******* ITEM [http://jhir.library.jhu.edu/handle/1774.2/33295] *******
bitstream_430525.pdf -> ChaudhryTR09.pdf
-------- UpLoaded Files ----------
#<Hyrax::UploadedFile:0x00000005e9c3c0>
----------------------------------
** Creating Item...
@dheles
dheles / hyrax_virtualhost.conf
Last active May 2, 2017 18:57
hyrax virtualhost configuration
<VirtualHost *:80>
ServerName sufia
ServerAlias sufia.test.test
ErrorLog "/var/log/httpd/sufia-error.log"
CustomLog "/var/log/httpd/sufia-access.log" combined
DocumentRoot /var/www/html/sufia/public
PassengerRuby /usr/local/bin/ruby
@dheles
dheles / keybase.md
Last active November 12, 2016 17:30
keybase verification

Keybase proof

I hereby claim:

  • I am dheles on github.
  • I am dheles (https://keybase.io/dheles) on keybase.
  • I have a public key ASCG57l46vR_p_wl_b5vQFNTP_e7peoodYLWJxShwWc9mQo

To claim this, I am signing this object: