Skip to content

Instantly share code, notes, and snippets.

View atz's full-sized avatar
:octocat:

Joe Atzberger atz

:octocat:
  • Corelight
  • Columbus, OH
View GitHub Profile
@chetan
chetan / yardoc_cheatsheet.md
Last active May 10, 2024 02:53
YARD cheatsheet
@billdueber
billdueber / marc2solr_lessons.adoc
Last active December 19, 2015 21:48
Lessons learned from my marc2solr stuff

Lessons learned from marc2solr

Things I did wrong

These are the things off the top of my head that drive me crazy and/or that I’ve had to work around. I’m sure there are more that I’ll come up with later.

The fundamental problem, it feels to me, is that the (equivalent of the) MARC::Reader.each loop is hidden. Pretty much all the rest of these problems flow from that. Basically, I want to give up on the idea of hiding the primary loop from the user, and just assume the user is both a programmer and a non-idiot.

@yulgit1
yulgit1 / gist:98489d23ca87d4b7f3bc
Last active August 29, 2015 14:07
YUL Access Control example
#current implementation as solr fields
#finegrained (view and download options for each datastream)
#using json nested literals for resolution
<str name="thumbnail_ss">Open Access</str>
<str name="jpg_ss">Yale Only</str>
<str name="jp2_ss">IP Restriction{130.132.111.227,128.36.*.*};NetID Restriction{handdan1}</str>
<str name="pdf_ss">Open Access</str>
<str name="ocr_ss">AD Group{mssasystems,libraryserveradmins}</str>
<str name="metadata_ss">Aeon Registration</str>
<str name="thumbnail_dl_ss">Open Access</str>
@cbeer
cbeer / _urls.md
Last active August 29, 2015 14:15
@fleveque
fleveque / s3_folder_upload.rb
Last active November 21, 2022 17:22
Upload folder to S3 recursively with ruby, multi threads and aws-sdk v2 gem, based on http://avi.io/blog/2013/12/03/upload-folder-to-s3-recursively/
#!/usr/bin/env ruby
require 'rubygems'
require 'aws-sdk'
class S3FolderUpload
attr_reader :folder_path, :total_files, :s3_bucket, :include_folder
attr_accessor :files
# Initialize the upload class
@danihodovic
danihodovic / main.tf
Created January 8, 2017 20:48
Terraform - static site using S3, Cloudfront and Route53
variable "aws_region" {
default = "eu-west-1"
}
variable "domain" {
default = "my_domain"
}
provider "aws" {
region = "${var.aws_region}"