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 | |
### | |
### my-script — does one thing well | |
### | |
### Usage: | |
### my-script <input> <output> | |
### | |
### Options: | |
### <input> Input file to read. | |
### <output> Output file to write. Use '-' for stdout. |
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/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
######################## Functions ######################### |
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
2.3.1 |
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
source 'https://rubygems.org' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '4.0.0' | |
# Use sqlite3 as the database for Active Record | |
gem 'sqlite3' | |
# Use SCSS for stylesheets | |
gem 'sass-rails', '~> 4.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
# /opt/boxen/repo/modules/projects/manifests/your_project.pp | |
# Install with: boxen your_project | |
# | |
# When you're using boxen DO NOT install clamav directly with: brew install clamav | |
# It won't link the header files correctly. | |
include homebrew | |
class projects::your_project { | |
notify { 'Setting up Your Project': } |
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
TEMPORARY SOLUTION | |
`rm spec/factories/senior_thesis_factory.rb` | |
`bundle exec rake db:drop db:create db:migrate` | |
`git co -- spec/factories/senior_thesis_factory.rb` | |
PROBLEM | |
When the factory for senior thesis loads without the database table 'local_authorities' present it fails: | |
spec/factories/senior_thesis_factory.rb |
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
# No log enteres are made by disadis if a request is made to download an item that is not viewable by the current user | |
# This single request is logged by disadis for a download request with a valid one-time access token | |
2015/11/18 09:32:25.159767 dl 10.41.57.0 GET /k6439z92c9d 39.285593ms | |
# These three requests are logged by disadis for ONE successful request to the downloads controller | |
2015/11/18 09:32:41.127054 dl 10.41.57.0 GET /k6439z92c9d 37.343704ms | |
2015/11/18 09:32:41.918609 dl 10.41.57.0 GET /k6439z92c9d 24.011027ms | |
2015/11/18 09:32:42.127155 dl 10.41.57.0 GET /k6439z92c9d 26.094414ms |
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 Hydra | |
module Controller | |
module DownloadBehavior | |
extend ActiveSupport::Concern | |
included do | |
before_filter :load_asset | |
before_filter :load_datastream | |
end | |
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
class Microfilm < ActiveRecord::Base | |
belongs_to :library | |
belongs_to :location | |
belongs_to :collection | |
after_save :update_solr unless ENV['DO_NOT_INDEX'] | |
after_destroy :remove_from_solr | |
scope :with_shelf_mark, lambda { |*shelf_mark| | |
where("#{quoted_table_name}.`shelf_mark` LIKE ?", "%#{shelf_mark.flatten.first}%") unless shelf_mark.flatten.first.blank? |
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
# -*- encoding: utf-8 -*- | |
Gem::Specification.new do |s| | |
s.name = %q{looksee} | |
s.version = "1.0.3" | |
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | |
s.authors = ["George Ogata"] | |
s.date = %q{2011-09-05 00:00:00.000000000Z} | |
s.email = ["george.ogata@gmail.com"] |
NewerOlder